Side was broken, must be between 0 and 5 to prevent other mods from crashing
This commit is contained in:
parent
52624ed3aa
commit
27ff3fb1d6
|
@ -491,7 +491,7 @@ public abstract class AEBasePart implements IPart, IGridProxyable, IActionHost,
|
|||
{
|
||||
// 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() );
|
||||
PlayerInteractEvent event = ForgeEventFactory.onPlayerInteract( player, PlayerInteractEvent.Action.RIGHT_CLICK_BLOCK, x, y, z, 0, player.getEntityWorld() );
|
||||
if( event.isCanceled() )
|
||||
return false;
|
||||
|
||||
|
@ -508,7 +508,7 @@ public abstract class AEBasePart implements IPart, IGridProxyable, IActionHost,
|
|||
{
|
||||
// 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() );
|
||||
PlayerInteractEvent event = ForgeEventFactory.onPlayerInteract( player, PlayerInteractEvent.Action.RIGHT_CLICK_BLOCK, x, y, z, 0, player.getEntityWorld() );
|
||||
if( event.isCanceled() )
|
||||
return false;
|
||||
|
||||
|
@ -579,4 +579,4 @@ public abstract class AEBasePart implements IPart, IGridProxyable, IActionHost,
|
|||
{
|
||||
this.renderCache = renderCache;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue