mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-21 12:42:26 +00:00
30 lines
1.3 KiB
Diff
30 lines
1.3 KiB
Diff
--- ../src-base/minecraft/net/minecraft/block/state/BlockPistonStructureHelper.java
|
|
+++ ../src-work/minecraft/net/minecraft/block/state/BlockPistonStructureHelper.java
|
|
@@ -80,7 +80,7 @@
|
|
{
|
|
Block block = this.world.getBlockState(origin).getBlock();
|
|
|
|
- if (block.getMaterial() == Material.air)
|
|
+ if (block.isAir(world, origin))
|
|
{
|
|
return true;
|
|
}
|
|
@@ -111,7 +111,7 @@
|
|
BlockPos blockpos1 = origin.offset(this.moveDirection.getOpposite(), i);
|
|
block = this.world.getBlockState(blockpos1).getBlock();
|
|
|
|
- if (block.getMaterial() == Material.air || !BlockPistonBase.canPush(block, this.world, blockpos1, this.moveDirection, false) || blockpos1.equals(this.pistonPos))
|
|
+ if (block.isAir(world, blockpos1)|| !BlockPistonBase.canPush(block, this.world, blockpos1, this.moveDirection, false) || blockpos1.equals(this.pistonPos))
|
|
{
|
|
break;
|
|
}
|
|
@@ -159,7 +159,7 @@
|
|
|
|
block = this.world.getBlockState(blockpos2).getBlock();
|
|
|
|
- if (block.getMaterial() == Material.air)
|
|
+ if (block.isAir(world, blockpos2))
|
|
{
|
|
return true;
|
|
}
|