should have gone with offset at the first place

This commit is contained in:
gnembon committed 2019-10-09 09:00:06 -03:00
1 parent 5a67d3223e
commit 3ccfe38b75
1 file changed
+1 -1
@@ -36,7 +36,7 @@ public abstract class PistonBlock_movableTEMixin extends FacingBlock
{
Block block = blockState_1.getBlock();
if (block != Blocks.GOLD_BLOCK && block != Blocks.SLIME_BLOCK) return;
Block otherBlock = world_1.getBlockState(blockPos_1.offset(direction_2.getOpposite(),1)).getBlock();
Block otherBlock = world_1.getBlockState(blockPos_1.method_10079(direction_2.getOpposite(),1)).getBlock();
if (otherBlock != Blocks.GOLD_BLOCK && otherBlock != Blocks.SLIME_BLOCK) return;
cir.setReturnValue(block == otherBlock);
}