Exception caught during firing event squeek.applecore.api.fo od.FoodEvent$FoodEaten
TomberWolf opened this issue ยท 0 comments
If a player eats something an 1.10.2:
[15:31:58] [Server thread/INFO]: [Tom: Given [BBQ Pulled Pork] * 8 to Sonja]
[15:32:21] [Server thread/ERROR] [FML]: Exception caught during firing event squeek.applecore.api.fo
od.FoodEvent$FoodEaten@53121a14:
java.lang.NullPointerException
at iguanaman.hungeroverhaul.module.food.FoodEventHandler.onFoodEaten(FoodEventHandler.java:2
2) ~[FoodEventHandler.class:?]
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_549_FoodEventHandler_onFoodEat
en_FoodEaten.invoke(.dynamic) ~[?:?]
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90
) ~[ASMEventHandler.class:?]
at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:635) [EventBus.cla
ss:?]
at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:591) [EventBus.cla
ss:?]
at squeek.applecore.asm.Hooks.onPostFoodStatsAdded(Hooks.java:128) [AppleCore-mc1.10.2-2.1.2
.jar:?]
at net.minecraft.util.FoodStats.func_151686_a(SourceFile:33) [abb.class:?]
at net.minecraft.item.ItemFood.func_77654_b(SourceFile:46) [adt.class:?]
at net.minecraft.item.ItemStack.func_77950_b(ItemStack.java:168) [adz.class:?]
at net.minecraft.entity.EntityLivingBase.func_71036_o(EntityLivingBase.java:2606) [sf.class:
?]
at net.minecraft.entity.player.EntityPlayerMP.func_71036_o(EntityPlayerMP.java:1002) [lu.cla
ss:?]
at net.minecraft.entity.EntityLivingBase.func_184608_ct(EntityLivingBase.java:2506) [sf.clas
s:?]
at net.minecraft.entity.EntityLivingBase.func_70071_h_(EntityLivingBase.java:1933) [sf.class
:?]
at net.minecraft.entity.player.EntityPlayer.func_70071_h_(EntityPlayer.java:233) [zs.class:?
]
at net.minecraft.entity.player.EntityPlayerMP.func_71127_g(EntityPlayerMP.java:303) [lu.clas
s:?]
at net.minecraft.network.NetHandlerPlayServer.redirect$onPlayerTick$zhd000(NetHandlerPlaySer
ver.java:1968) [me.class:?]
at net.minecraft.network.NetHandlerPlayServer.func_73660_a(NetHandlerPlayServer.java:162) [m
e.class:?]
at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher$1.func_73660_a(NetworkD
ispatcher.java:213) [NetworkDispatcher$1.class:?]
at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:287) [eo.class:?]
at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:180) [md.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:732) [MinecraftSer
ver.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld
.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftSer
ver.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class
:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_121]
[15:32:21] [Server thread/ERROR] [FML]: Index: 1 Listeners:
[15:32:21] [Server thread/ERROR] [FML]: 0: NORMAL
[15:32:21] [Server thread/ERROR] [FML]: 1: ASM: iguanaman.hungeroverhaul.module.food.FoodEventHandle
r@33d00bbe onFoodEaten(Lsqueek/applecore/api/food/FoodEvent$FoodEaten;)V
[15:32:21] [Server thread/WARN]: Failed to handle packet for /87.170.85.111:63475
net.minecraft.util.ReportedException: Ticking player
at net.minecraft.entity.player.EntityPlayerMP.func_71127_g(EntityPlayerMP.java:380) ~[lu.cla
ss:?]
at net.minecraft.network.NetHandlerPlayServer.redirect$onPlayerTick$zhd000(NetHandlerPlaySer
ver.java:1968) ~[me.class:?]
at net.minecraft.network.NetHandlerPlayServer.func_73660_a(NetHandlerPlayServer.java:162) ~[
me.class:?]
at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher$1.func_73660_a(NetworkD
ispatcher.java:213) ~[NetworkDispatcher$1.class:?]
at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:287) ~[eo.class:?]
at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:180) [md.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:732) [MinecraftSer
ver.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld
.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftSer
ver.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class
:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_121]
Caused by: java.lang.NullPointerException
at iguanaman.hungeroverhaul.module.food.FoodEventHandler.onFoodEaten(FoodEventHandler.java:2
2) ~[FoodEventHandler.class:?]
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_549_FoodEventHandler_onFoodEat
en_FoodEaten.invoke(.dynamic) ~[?:?]
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90
) ~[ASMEventHandler.class:?]
at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:635) ~[EventBus.cl
ass:?]
at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:591) ~[EventBus.cl
ass:?]
at squeek.applecore.asm.Hooks.onPostFoodStatsAdded(Hooks.java:128) ~[AppleCore-mc1.10.2-2.1.
2.jar:?]
at net.minecraft.util.FoodStats.func_151686_a(SourceFile:33) ~[abb.class:?]
at net.minecraft.item.ItemFood.func_77654_b(SourceFile:46) ~[adt.class:?]
at net.minecraft.item.ItemStack.func_77950_b(ItemStack.java:168) ~[adz.class:?]
at net.minecraft.entity.EntityLivingBase.func_71036_o(EntityLivingBase.java:2606) ~[sf.class
:?]
at net.minecraft.entity.player.EntityPlayerMP.func_71036_o(EntityPlayerMP.java:1002) ~[lu.cl
ass:?]
at net.minecraft.entity.EntityLivingBase.func_184608_ct(EntityLivingBase.java:2506) ~[sf.cla
ss:?]
at net.minecraft.entity.EntityLivingBase.func_70071_h_(EntityLivingBase.java:1933) ~[sf.clas
s:?]
at net.minecraft.entity.player.EntityPlayer.func_70071_h_(EntityPlayer.java:233) ~[zs.class:
?]
at net.minecraft.entity.player.EntityPlayerMP.func_71127_g(EntityPlayerMP.java:303) ~[lu.cla
ss:?]
... 10 more
[15:32:21] [Server thread/INFO]: Sonja lost connection: Internal server error