Disable debug reloading of spellbook chapters

This commit is contained in:
Sollace 2022-09-10 17:30:11 +02:00
parent 10eb493ccf
commit 06268b70ca
2 changed files with 5 additions and 1 deletions

View file

@ -23,7 +23,7 @@ public class SpellbookChapterLoader extends JsonDataLoader implements Identifiab
private static final Logger LOGGER = LogUtils.getLogger();
private static final Identifier ID = Unicopia.id("spellbook/chapters");
private static final Executor EXECUTOR = CompletableFuture.delayedExecutor(5, TimeUnit.SECONDS);
public static boolean DEBUG = true;
public static boolean DEBUG = false;
public static final SpellbookChapterLoader INSTANCE = new SpellbookChapterLoader();

View file

@ -128,6 +128,10 @@ public class SpellbookScreen extends HandledScreen<SpellbookScreenHandler> imple
drawTexture(matrices, x, y, 0, 0, backgroundWidth, backgroundHeight, 512, 256);
if (SpellbookChapterLoader.DEBUG) {
clearAndInit();
}
tabs.getAllTabs().forEach(tab -> {
Bounds bounds = tab.bounds();
chapters.getCurrentChapter();