Crash when equipping item
SiverDX opened this issue ยท 0 comments
Version: 1.19.2 - 1.5.4
[11:29:56] [Server thread/ERROR] [ne.mi.ev.EventBus/EVENTBUS]: Exception caught during firing event: Cannot invoke "net.minecraft.world.entity.EquipmentSlot.equals(Object)" because the return value of "net.minecraftforge.event.ItemAttributeModifierEvent.getSlotType()" is null
Index: 3
Listeners:
0: NORMAL
1: ASM: shadows.apotheosis.core.attributeslib.impl.AttributeEvents@502ad6cf affixModifiers(Lnet/minecraftforge/event/ItemAttributeModifierEvent;)V
2: ASM: class ihh.propertymodifier.EventHandler itemAttributeModifier(Lnet/minecraftforge/event/ItemAttributeModifierEvent;)V
3: ASM: com.cgessinger.creaturesandbeasts.events.CNBEvents@285dd34d onItemAttributeModifierCalculate(Lnet/minecraftforge/event/ItemAttributeModifierEvent;)V
4: ASM: class net.mindoth.dreadsteel.item.weapon.DreadsteelScythe dreadsteelScytheAttributeEvent(Lnet/minecraftforge/event/ItemAttributeModifierEvent;)V
5: ASM: class net.mindoth.dreadsteel.item.armor.ArmorEvents dreadsteelAttributeEvent(Lnet/minecraftforge/event/ItemAttributeModifierEvent;)V
6: ASM: class io.redspace.ironsspellbooks.player.ServerPlayerEvents handleUpgradeModifiers(Lnet/minecraftforge/event/ItemAttributeModifierEvent;)V
7: ASM: shadows.apotheosis.adventure.AdventureEvents@5e045441 affixModifiers(Lnet/minecraftforge/event/ItemAttributeModifierEvent;)V
8: LOWEST
9: net.minecraftforge.eventbus.EventBus$$Lambda$1755/0x0000000801419140@3b905370
java.lang.NullPointerException: Cannot invoke "net.minecraft.world.entity.EquipmentSlot.equals(Object)" because the return value of "net.minecraftforge.event.ItemAttributeModifierEvent.getSlotType()" is null
at TRANSFORMER/[email protected]/com.cgessinger.creaturesandbeasts.events.CNBEvents.onItemAttributeModifierCalculate(CNBEvents.java:90)
at TRANSFORMER/[email protected]/com.cgessinger.creaturesandbeasts.events.__CNBEvents_onItemAttributeModifierCalculate_ItemAttributeModifierEvent.invoke(.dynamic)
at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:73)
at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.EventBus.post(EventBus.java:315)
at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.EventBus.post(EventBus.java:296)
at TRANSFORMER/[email protected]/net.minecraftforge.common.ForgeHooks.getAttributeModifiers(ForgeHooks.java:1111)
at TRANSFORMER/[email protected]/net.minecraft.world.item.ItemStack.m_41638_(ItemStack.java:909)
at TRANSFORMER/[email protected]/com.momosoftworks.coldsweat.common.event.ArmorInsulation.addLeatherModifiers(ArmorInsulation.java:100)
at TRANSFORMER/[email protected]/com.momosoftworks.coldsweat.common.event.__ArmorInsulation_addLeatherModifiers_PlayerTickEvent.invoke(.dynamic)
at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:73)
at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.EventBus.post(EventBus.java:315)
at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.EventBus.post(EventBus.java:296)
at TRANSFORMER/[email protected]/net.minecraftforge.event.ForgeEventFactory.onPlayerPostTick(ForgeEventFactory.java:819)
at TRANSFORMER/[email protected]/net.minecraft.world.entity.player.Player.m_8119_(Player.java:288)
at TRANSFORMER/[email protected]/net.minecraft.server.level.ServerPlayer.m_9240_(ServerPlayer.java:447)
at TRANSFORMER/[email protected]/net.minecraft.server.network.ServerGamePacketListenerImpl.mixinextras$bridge$m_9240_$158(ServerGamePacketListenerImpl.java)
at TRANSFORMER/[email protected]/com.bawnorton.neruina.handler.NeruinaTickHandler.safelyTickPlayer$notTheCauseOfTickLag(NeruinaTickHandler.java:63)
at TRANSFORMER/[email protected]/net.minecraft.server.network.ServerGamePacketListenerImpl.wrapOperation$dbd000$catchTickingPlayer(ServerGamePacketListenerImpl.java:4858)
at TRANSFORMER/[email protected]/net.minecraft.server.network.ServerGamePacketListenerImpl.m_9933_(ServerGamePacketListenerImpl.java:264)
at TRANSFORMER/[email protected]/net.minecraft.network.Connection.m_129483_(Connection.java:248)
at TRANSFORMER/[email protected]/net.minecraft.server.network.ServerConnectionListener.m_9721_(ServerConnectionListener.java:143)
at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.m_5703_(MinecraftServer.java:880)
at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.m_5705_(MinecraftServer.java:806)
at TRANSFORMER/[email protected]/net.minecraft.client.server.IntegratedServer.m_5705_(IntegratedServer.java:84)
at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:654)
at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.m_206580_(MinecraftServer.java:244)
at java.base/java.lang.Thread.run(Unknown Source)