mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-02-04 17:22:13 +01:00
Finally enforce deprecation of ancient Banners.json fields
Also add costItemId10 column so people know it exists, and removeC6FromPool column because it's a cool setting nobody knows about.
This commit is contained in:
@@ -74,7 +74,11 @@ public class GachaSystem extends BaseGameSystem {
|
||||
if (banners.size() > 0) {
|
||||
for (GachaBanner banner : banners) {
|
||||
banner.onLoad();
|
||||
getGachaBanners().put(banner.getScheduleId(), banner);
|
||||
if (banner.isDeprecated()) {
|
||||
Grasscutter.getLogger().error("A Banner has not been loaded because it contains one or more deprecated fields. Remove the fields mentioned above and reload.");
|
||||
} else {
|
||||
getGachaBanners().put(banner.getScheduleId(), banner);
|
||||
}
|
||||
}
|
||||
Grasscutter.getLogger().debug("Banners successfully loaded.");
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user