mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 01:27:27 +00:00
Fixed null pointer exception crash when right clicking on servers.
This commit is contained in:
1 parent
b302f3fecb
commit
edf08746cb
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) {
|
||||
|
||||
Reference in new issue
Block a user