Fix crash when placing an engine vertically

This commit is contained in:
mezz committed 2016-05-21 20:31:20 -07:00
1 parent 2dc7ae137e
commit c4c3f493be
2 files changed
+14 -12

No files matched your search

@@ -125,7 +125,7 @@ public class BlockEngine extends BlockBase<BlockTypeEngine> {
EnumFacing orientation = EnumFacing.values()[i % 6];
if (isOrientedAtEnergyReciever(world, pos, orientation)) {
blockState = blockState.withProperty(FACING, orientation);
world.setBlockState(pos, blockState, 2);
world.setBlockState(pos, blockState);
return true;
}
}
@@ -138,7 +138,7 @@ public class BlockEngine extends BlockBase<BlockTypeEngine> {
if (isOrientedAtEnergyReciever(world, pos, orientation)) {
IBlockState blockState = world.getBlockState(pos);
blockState = blockState.withProperty(FACING, orientation);
world.setBlockState(pos, blockState, 2);
world.setBlockState(pos, blockState);
} else {
super.rotateAfterPlacement(player, world, pos, side);
rotate(world, pos);