mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-28 15:36:18 +00:00
Fix crash when placing an engine vertically
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user