Side was broken, must be between 0 and 5 to prevent other mods from crashing

This commit is contained in:
Timo Ley 2021-04-03 00:02:44 +02:00
parent 52624ed3aa
commit 27ff3fb1d6
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}
}
}