mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 03:25:18 +00:00
30 lines
1.6 KiB
Diff
30 lines
1.6 KiB
Diff
--- ../src-base/minecraft/net/minecraft/block/state/BlockPistonStructureHelper.java
|
|
+++ ../src-work/minecraft/net/minecraft/block/state/BlockPistonStructureHelper.java
|
|
@@ -80,7 +80,7 @@
|
|
IBlockState iblockstate = this.field_177261_a.func_180495_p(p_177251_1_);
|
|
Block block = iblockstate.func_177230_c();
|
|
|
|
- if (iblockstate.func_185904_a() == Material.field_151579_a)
|
|
+ if (iblockstate.func_177230_c().isAir(iblockstate, this.field_177261_a, p_177251_1_))
|
|
{
|
|
return true;
|
|
}
|
|
@@ -112,7 +112,7 @@
|
|
iblockstate = this.field_177261_a.func_180495_p(blockpos);
|
|
block = iblockstate.func_177230_c();
|
|
|
|
- if (iblockstate.func_185904_a() == Material.field_151579_a || !BlockPistonBase.func_185646_a(iblockstate, this.field_177261_a, blockpos, this.field_177257_d, false) || blockpos.equals(this.field_177259_b))
|
|
+ if (iblockstate.func_177230_c().isAir(iblockstate, this.field_177261_a, blockpos) || !BlockPistonBase.func_185646_a(iblockstate, this.field_177261_a, blockpos, this.field_177257_d, false) || blockpos.equals(this.field_177259_b))
|
|
{
|
|
break;
|
|
}
|
|
@@ -159,7 +159,7 @@
|
|
|
|
iblockstate = this.field_177261_a.func_180495_p(blockpos1);
|
|
|
|
- if (iblockstate.func_185904_a() == Material.field_151579_a)
|
|
+ if (iblockstate.func_177230_c().isAir(iblockstate, this.field_177261_a, blockpos1))
|
|
{
|
|
return true;
|
|
}
|