mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-01 03:26:44 +01:00
Disable debug reloading of spellbook chapters
This commit is contained in:
parent
10eb493ccf
commit
06268b70ca
2 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue