Server crashs after removing a mod from modpack
poswar opened this issue ยท 4 comments
Using 1.12 version. Steps to reproduce:
- Eat some food from mod X
- Shutdown the game and remove mod X from the modpack.
- The following stacktrace will arrive:
Stacktrace:
java.lang.NullPointerException: Loading entity NBT
at com.cazsius.solcarrot.capability.FoodInstance.equals(FoodInstance.java:47)
at java.util.HashMap.putVal(HashMap.java:635)
at java.util.HashMap.put(HashMap.java:612)
at java.util.HashSet.add(HashSet.java:220)
at com.cazsius.solcarrot.capability.FoodCapability.addFood(FoodCapability.java:27)
at com.cazsius.solcarrot.capability.FoodCapability.deserializeNBT(FoodCapability.java:70)
solcarrot-1.12.1-1.3.jar
I think that the issue is because the mod is trying to keep track of inexistent food in NBT player data.
The error shows just after the game reloads.
Interesting, I tested this and it was fine in dev env. I see the issue does exist though. Will investigate