Skip to content

Commit

Permalink
fixed #11
Browse files Browse the repository at this point in the history
  • Loading branch information
xsun2001 committed Aug 13, 2017
1 parent d826e42 commit 63880be
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/appeng/parts/AEBasePart.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 63880be

Please sign in to comment.