From 83e85b4ac31ec7a95fd3b09e8285d539043ac6bb Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sat, 12 Nov 2016 23:29:36 +0100 Subject: [PATCH] Made booklet chapters initialize in init instead of postinit --- .../de/ellpeck/actuallyadditions/mod/ActuallyAdditions.java | 1 + .../de/ellpeck/actuallyadditions/mod/booklet/InitBooklet.java | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/ActuallyAdditions.java b/src/main/java/de/ellpeck/actuallyadditions/mod/ActuallyAdditions.java index af73247df..d67e46d2b 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/ActuallyAdditions.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/ActuallyAdditions.java @@ -120,6 +120,7 @@ public class ActuallyAdditions{ InitCrafting.init(); InitEntities.init(); + InitBooklet.init(); proxy.init(event); ModUtil.LOGGER.info("Initialization Finished."); diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/InitBooklet.java b/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/InitBooklet.java index ca76d91aa..79b8115c0 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/InitBooklet.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/InitBooklet.java @@ -63,9 +63,11 @@ public final class InitBooklet{ ActuallyAdditionsAPI.allAndSearch = new BookletEntryAllItems("allAndSearch").setImportant(); } - public static void postInit(){ + public static void init(){ initChapters(); + } + public static void postInit(){ int chapCount = 0; int pageCount = 0; int infoCount = 0;