From 6e8009eb2d0f8bbe512e4e336cabe60816a34e0c Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Wed, 6 Aug 2014 21:02:08 -0500 Subject: [PATCH] Ignore fake players. --- block/grindstone/BlockCrank.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/block/grindstone/BlockCrank.java b/block/grindstone/BlockCrank.java index 336f4a9c..50efb70d 100644 --- a/block/grindstone/BlockCrank.java +++ b/block/grindstone/BlockCrank.java @@ -9,6 +9,7 @@ import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import net.minecraft.tileentity.TileEntity; import net.minecraft.world.World; +import net.minecraftforge.common.util.FakePlayer; import net.minecraftforge.common.util.ForgeDirection; import appeng.api.implementations.tiles.ICrankable; import appeng.block.AEBaseBlock; @@ -32,11 +33,13 @@ public class BlockCrank extends AEBaseBlock @Override public boolean onActivated(World w, int x, int y, int z, EntityPlayer p, int side, float hitX, float hitY, float hitZ) { + if ( p instanceof FakePlayer ) + return true; + AEBaseTile tile = getTileEntity( w, x, y, z ); if ( tile instanceof TileCrank ) - { ((TileCrank) tile).power(); - } + return true; }