diff options
Diffstat (limited to 'nms-patches/BlockPoweredRail.patch')
-rw-r--r-- | nms-patches/BlockPoweredRail.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nms-patches/BlockPoweredRail.patch b/nms-patches/BlockPoweredRail.patch index 43ee707d..fa6a5cb2 100644 --- a/nms-patches/BlockPoweredRail.patch +++ b/nms-patches/BlockPoweredRail.patch @@ -8,7 +8,7 @@ public class BlockPoweredRail extends BlockMinecartTrackAbstract { public static final BlockStateEnum<BlockPropertyTrackPosition> SHAPE = BlockProperties.S; -@@ -106,6 +108,13 @@ +@@ -101,6 +103,13 @@ boolean flag1 = world.isBlockIndirectlyPowered(blockposition) || this.a(world, blockposition, iblockdata, true, 0) || this.a(world, blockposition, iblockdata, false, 0); if (flag1 != flag) { @@ -19,6 +19,6 @@ + return; + } + // CraftBukkit end - world.setTypeAndData(blockposition, (IBlockData) iblockdata.set(BlockPoweredRail.POWERED, Boolean.valueOf(flag1)), 3); + world.setTypeAndData(blockposition, (IBlockData) iblockdata.set(BlockPoweredRail.POWERED, flag1), 3); world.applyPhysics(blockposition.down(), this); if (((BlockPropertyTrackPosition) iblockdata.get(BlockPoweredRail.SHAPE)).c()) { |