Add warnings to ancient deprecated Banners.json fields

Will probably turn these into runtime errors in 1.5.0, people need to stop sharing configs with dead fields and especially stop making PRs with them.
This commit is contained in:
AnimeGitB
2022-11-05 14:22:17 +10:30
parent 9f00ea3573
commit dc7b8d8ca6
2 changed files with 35 additions and 6 deletions

View File

@@ -73,6 +73,7 @@ public class GachaSystem extends BaseGameSystem {
List<GachaBanner> banners = DataLoader.loadList("Banners.json", GachaBanner.class);
if (banners.size() > 0) {
for (GachaBanner banner : banners) {
banner.onLoad();
getGachaBanners().put(banner.getScheduleId(), banner);
}
Grasscutter.getLogger().debug("Banners successfully loaded.");