should have gone with offset at the first place
This commit is contained in:
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();
|
Block block = blockState_1.getBlock();
|
||||||
if (block != Blocks.GOLD_BLOCK && block != Blocks.SLIME_BLOCK) return;
|
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;
|
if (otherBlock != Blocks.GOLD_BLOCK && otherBlock != Blocks.SLIME_BLOCK) return;
|
||||||
cir.setReturnValue(block == otherBlock);
|
cir.setReturnValue(block == otherBlock);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user