diff --git a/src/main/java/appeng/parts/AEBasePart.java b/src/main/java/appeng/parts/AEBasePart.java index 7422626be18..27d9f3fe808 100644 --- a/src/main/java/appeng/parts/AEBasePart.java +++ b/src/main/java/appeng/parts/AEBasePart.java @@ -489,7 +489,8 @@ private boolean useMemoryCard( final EntityPlayer player ) @Override public final boolean onActivate( final EntityPlayer player, final Vec3 pos ) { - int x = (int) pos.xCoord, y = (int) pos.yCoord, z = (int) pos.zCoord; + // int x = (int) pos.xCoord, y = (int) pos.yCoord, z = (int) pos.zCoord; + int x = this.tile.xCoord, y = this.tile.yCoord, z = this.tile.zCoord; PlayerInteractEvent event = ForgeEventFactory.onPlayerInteract( player, PlayerInteractEvent.Action.RIGHT_CLICK_BLOCK, x, y, z, this.side.flag, player.getEntityWorld() ); if( event.isCanceled() ) return false; @@ -505,7 +506,8 @@ public final boolean onActivate( final EntityPlayer player, final Vec3 pos ) @Override public final boolean onShiftActivate( final EntityPlayer player, final Vec3 pos ) { - int x = (int) pos.xCoord, y = (int) pos.yCoord, z = (int) pos.zCoord; + // int x = (int) pos.xCoord, y = (int) pos.yCoord, z = (int) pos.zCoord; + int x = this.tile.xCoord, y = this.tile.yCoord, z = this.tile.zCoord; PlayerInteractEvent event = ForgeEventFactory.onPlayerInteract( player, PlayerInteractEvent.Action.RIGHT_CLICK_BLOCK, x, y, z, this.side.flag, player.getEntityWorld() ); if( event.isCanceled() ) return false;