Fix clientside access on server

This commit is contained in:
Bernhard Bonigl committed 2015-03-13 18:20:18 +01:00
1 parent f0978fcd84
commit f895951cb4
1 file changed
+1 -1
@@ -30,7 +30,7 @@ public class TActiveOmniMod extends ActiveToolMod
{
if (!world.isRemote && entity instanceof EntityLivingBase && !((EntityLivingBase) entity).isSwingInProgress && stack.getTagCompound() != null)
{
if(entity instanceof EntityPlayer && (((EntityPlayer) entity).isUsingItem()) && ((EntityPlayer) entity).getItemInUse() == stack)
if(entity instanceof EntityPlayer && (((EntityPlayer) entity).isUsingItem()))
return;
NBTTagCompound tags = stack.getTagCompound().getCompoundTag("InfiTool");
if (tags.hasKey("Moss"))