Soulstone Crash Fix

This commit is contained in:
Kam committed 2025-03-12 20:03:08 -04:00
1 parent 207d9f6124
commit 250edf099c
1 file changed
+6 -4
@@ -79,10 +79,12 @@ public class ServerEventsHandler {
}
if(!isRemote && item.getItem() == CustomItems.soulstoneEmpty) {
((ItemSoulstoneEmpty)item.getItem()).store((EntityLivingBase)event.target, item, event.entityPlayer);
if(ConfigDebug.PlayerLogging && FMLCommonHandler.instance().getEffectiveSide() == Side.SERVER){
LogWriter.script(String.format("[%s] (Player) %s PICKED ENTITY %s", "SOULSTONE", event.entityPlayer.getCommandSenderName(), event.target));
}
if(event.target instanceof EntityLivingBase){
((ItemSoulstoneEmpty)item.getItem()).store((EntityLivingBase)event.target, item, event.entityPlayer);
if(ConfigDebug.PlayerLogging && FMLCommonHandler.instance().getEffectiveSide() == Side.SERVER){
LogWriter.script(String.format("[%s] (Player) %s PICKED ENTITY %s", "SOULSTONE", event.entityPlayer.getCommandSenderName(), event.target));
}
}
}
if(item.getItem() == CustomItems.wand && npcInteracted && !isRemote){