java.lang.NullPointerException: Ticking player
at com.thexfactor117.levels.event.EventAttack.addExperience(EventAttack.java:133)
at com.thexfactor117.levels.event.EventAttack.onLivingHurt(EventAttack.java:75)
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_503_EventAttack_onLivingHurt_LivingHurtEvent.invoke(.dynamic)
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:185)
at net.minecraftforge.common.ForgeHooks.onLivingHurt(ForgeHooks.java:504)
at net.minecraft.entity.player.EntityPlayer.func_70665_d(EntityPlayer.java:1085)
at net.minecraft.entity.EntityLivingBase.func_70097_a(EntityLivingBase.java:890)
at net.minecraft.entity.player.EntityPlayer.func_70097_a(EntityPlayer.java:1022)
at net.minecraft.entity.player.EntityPlayerMP.func_70097_a(EntityPlayerMP.java:543)
at net.minecraft.entity.monster.EntitySlime.func_175451_e(EntitySlime.java:249)
at net.minecraft.entity.monster.EntitySlime.func_70100b(EntitySlime.java:241)
at net.minecraft.entity.player.EntityPlayer.func_71044_o(EntityPlayer.java:578)
at net.minecraft.entity.player.EntityPlayer.func_70636_d(EntityPlayer.java:570)
at net.minecraft.entity.EntityLivingBase.func_70071h(EntityLivingBase.java:2013)
at net.minecraft.entity.player.EntityPlayer.func_70071h(EntityPlayer.java:233)
at net.minecraft.entity.player.EntityPlayerMP.func_71127_g(EntityPlayerMP.java:303)
at net.minecraft.network.NetHandlerPlayServer.func_73660_a(NetHandlerPlayServer.java:162)
at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher$1.func_73660_a(NetworkDispatcher.java:213)
at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:287)
at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:180)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:732)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613)
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:240)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471)
at java.lang.Thread.run(Thread.java:745)
A detailed walkthrough of the error, its code path and all known details is as follows:
-- Head --
Thread: Server thread
Stacktrace:
at com.thexfactor117.levels.event.EventAttack.addExperience(EventAttack.java:133)
at com.thexfactor117.levels.event.EventAttack.onLivingHurt(EventAttack.java:75)
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_503_EventAttack_onLivingHurt_LivingHurtEvent.invoke(.dynamic)
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:185)
at net.minecraftforge.common.ForgeHooks.onLivingHurt(ForgeHooks.java:504)
at net.minecraft.entity.player.EntityPlayer.func_70665_d(EntityPlayer.java:1085)
at net.minecraft.entity.EntityLivingBase.func_70097_a(EntityLivingBase.java:890)
at net.minecraft.entity.player.EntityPlayer.func_70097_a(EntityPlayer.java:1022)
at net.minecraft.entity.player.EntityPlayerMP.func_70097_a(EntityPlayerMP.java:543)
at net.minecraft.entity.monster.EntitySlime.func_175451_e(EntitySlime.java:249)
at net.minecraft.entity.monster.EntitySlime.func_70100b(EntitySlime.java:241)
at net.minecraft.entity.player.EntityPlayer.func_71044_o(EntityPlayer.java:578)
at net.minecraft.entity.player.EntityPlayer.func_70636_d(EntityPlayer.java:570)
at net.minecraft.entity.EntityLivingBase.func_70071h(EntityLivingBase.java:2013)
at net.minecraft.entity.player.EntityPlayer.func_70071h(EntityPlayer.java:233)
-- Player being ticked --
Details:
Entity Type: null (net.minecraft.entity.player.EntityPlayerMP)
Entity ID: 288
Entity Name: lightlike
Entity's Exact location: -418.88, 64.00, 350.05
Entity's Block location: World: (-419,64,350), Chunk: (at 13,4,14 in -27,21; contains blocks -432,0,336 to -417,255,351), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
Entity's Momentum: 0.07, -0.08, 0.00
Entity's Passengers: []
Entity's Vehicle: ERROR NullPointerException: null
Stacktrace:
at net.minecraft.entity.player.EntityPlayerMP.func_71127_g(EntityPlayerMP.java:303)
at net.minecraft.network.NetHandlerPlayServer.func_73660_a(NetHandlerPlayServer.java:162)
at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher$1.func_73660_a(NetworkDispatcher.java:213)
at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:287)
-- Ticking connection --
Details:
Connection: net.minecraft.network.NetworkManager@1a292153
Stacktrace:
at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:180)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:732)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613)
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:240)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471)
at java.lang.Thread.run(Thread.java:745)
Version: 1.10.2 Forge: 12.18.3.2297 Levels-Version: 3.0.0-beta Other mods: TConstruct 2.6.5
Reproduce: just getting attacked by a blue slime
Crash Report: