Fishing causes a crash
teny1989 opened this issue ยท 3 comments
Tried to give one of my fae a fishing post and while they went to go get a rod a crash occurred with this in the log:
Description: Ticking entity
java.lang.NullPointerException: Cannot invoke "net.minecraft.class_1297.method_21752()" because "$$0" is null
at net.minecraft.class_3727.(class_3727.java:42)
at net.minecraft.class_3726.method_16195(class_3726.java:15)
at net.minecraft.class_3959.(class_3959.java:28)
at net.heyimamethyst.fairyfactions.entities.ai.FairyJob.canSeeToSpot(FairyJob.java:1601)
at net.heyimamethyst.fairyfactions.entities.ai.FairyJob.onFishingUse(FairyJob.java:1510)
at net.heyimamethyst.fairyfactions.entities.ai.FairyJob.checkChestItem(FairyJob.java:409)
at net.heyimamethyst.fairyfactions.entities.ai.FairyJob.getNearbyChest2(FairyJob.java:282)
at net.heyimamethyst.fairyfactions.entities.ai.FairyJob.discover(FairyJob.java:112)
at net.heyimamethyst.fairyfactions.entities.ai.FairyTasks.handlePosted(FairyTasks.java:993)
at net.heyimamethyst.fairyfactions.entities.ai.FairyAI.method_6268(FairyAI.java:78)
at net.minecraft.class_4135.method_6268(class_4135.java:65)
at net.minecraft.class_1355.method_38849(class_1355.java:120)
at net.minecraft.class_1355.method_6275(class_1355.java:111)
at net.minecraft.class_1308.method_6023(class_1308.java:765)
at net.minecraft.class_1309.method_6007(class_1309.java:2654)
at net.minecraft.class_1308.method_6007(class_1308.java:544)
at net.minecraft.class_1296.method_6007(class_1296.java:128)
at net.minecraft.class_1429.method_6007(class_1429.java:57)
at net.heyimamethyst.fairyfactions.entities.FairyEntity.method_6007(FairyEntity.java:776)
at net.minecraft.class_1309.method_5773(class_1309.java:2400)
at net.minecraft.class_1308.method_5773(class_1308.java:344)
at net.heyimamethyst.fairyfactions.entities.FairyEntity.method_5773(FairyEntity.java:440)
at net.minecraft.class_3218.method_18762(class_3218.java:722)
at net.minecraft.class_1937.method_18472(class_1937.java:488)
at net.minecraft.class_3218.method_31420(class_3218.java:371)
at net.minecraft.class_5574.method_31791(class_5574.java:54)
at net.minecraft.class_3218.method_18765(class_3218.java:339)
at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:901)
at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:828)
at net.minecraft.class_1132.method_3748(class_1132.java:105)
at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:675)
at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:266)
at java.base/java.lang.Thread.run(Thread.java:833)
Hello! Thanks for bringing this to my attention! What version of Minecraft were you playing on? And was this for the forge version of the mod or fabric?
Nevermind, I managed to find why this issue was happening. I'll post an update with the fix soon!