This commit is contained in:
Kam committed 2024-03-04 23:14:44 -05:00
commit 313eaf7eb5
1 file changed
+1 -1
@@ -121,7 +121,7 @@ public class ScriptItemEventHandler {
if(event.entityPlayer == null || event.entityPlayer.worldObj == null || event.action == null)
return;
if(event.entityPlayer.worldObj.isRemote && event.entityPlayer.worldObj instanceof WorldServer)
if(event.entityPlayer.worldObj.isRemote || !(event.entityPlayer.worldObj instanceof WorldServer))
return;
if (PlayerDataController.Instance != null) {