Hardcore Questing Mode [FORGE/FABRIC]

Hardcore Questing Mode [FORGE/FABRIC]

16M Downloads

Error on MinecraftForge server on 1.17.1

Sharku2011 opened this issue ยท 0 comments

commented

MC - 1.17.1
Forge - 37.0.47 ~ 37.0.53
HQM - 5.6.0 ~ 5.6.2

Following error message printed. However, server goes on anyway.

java.lang.NullPointerException: Cannot invoke "net.minecraft.server.MinecraftServer.m_7035_()" because the return value of "hardcorequesting.common.forge.HardcoreQuestingCore.getServer()" is null
at TRANSFORMER/[email protected]/hardcorequesting.common.forge.quests.QuestingDataManager.activateHardcore(QuestingDataManager.java:68)
at TRANSFORMER/[email protected]/hardcorequesting.common.forge.quests.QuestingDataManager$State.loadFromString(QuestingDataManager.java:136)
at TRANSFORMER/[email protected]/hardcorequesting.common.forge.quests.SimpleSerializable.load(SimpleSerializable.java:29)
at TRANSFORMER/[email protected]/hardcorequesting.common.forge.quests.QuestLine.loadAll(QuestLine.java:183)
at TRANSFORMER/[email protected]/hardcorequesting.common.forge.HardcoreQuestingCore.initialize(HardcoreQuestingCore.java:57)
at TRANSFORMER/[email protected]/hardcorequesting.forge.HardcoreQuestingForge.(HardcoreQuestingForge.java:98)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:78)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
at LAYER PLUGIN/[email protected]/net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:81)
at LAYER PLUGIN/[email protected]/net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$4(ModContainer.java:120)
at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1800)
at java.base/java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1792)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
java.lang.NullPointerException: Cannot invoke "net.minecraft.server.MinecraftServer.m_7035_()" because the return value of "hardcorequesting.common.forge.HardcoreQuestingCore.getServer()" is null
at TRANSFORMER/[email protected]/hardcorequesting.common.forge.quests.QuestingDataManager.activateHardcore(QuestingDataManager.java:68)
at TRANSFORMER/[email protected]/hardcorequesting.common.forge.quests.QuestingDataManager$State.loadFromString(QuestingDataManager.java:136)
at java.base/java.util.Optional.ifPresent(Optional.java:178)
at TRANSFORMER/[email protected]/hardcorequesting.common.forge.quests.SimpleSerializable.load(SimpleSerializable.java:36)
at TRANSFORMER/[email protected]/hardcorequesting.common.forge.quests.QuestLine.loadAll(QuestLine.java:183)
at TRANSFORMER/[email protected]/hardcorequesting.common.forge.HardcoreQuestingCore.initialize(HardcoreQuestingCore.java:57)
at TRANSFORMER/[email protected]/hardcorequesting.forge.HardcoreQuestingForge.(HardcoreQuestingForge.java:98)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:78)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
at LAYER PLUGIN/[email protected]/net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:81)
at LAYER PLUGIN/[email protected]/net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$4(ModContainer.java:120)
at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1800)
at java.base/java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1792)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)