@@ -8,10 +8,10 @@
|
||||
|
||||
public class BlockTrapdoor extends BlockFacingHorizontal implements IFluidSource, IFluidContainer {
|
||||
|
||||
@@ -94,6 +95,19 @@
|
||||
@@ -88,6 +89,19 @@
|
||||
boolean flag = world.isBlockIndirectlyPowered(blockposition);
|
||||
|
||||
if (flag != ((Boolean) iblockdata.get(BlockTrapdoor.c)).booleanValue()) {
|
||||
if (flag != (Boolean) iblockdata.get(BlockTrapdoor.c)) {
|
||||
+ // CraftBukkit start
|
||||
+ org.bukkit.World bworld = world.getWorld();
|
||||
+ org.bukkit.block.Block bblock = bworld.getBlockAt(blockposition.getX(), blockposition.getY(), blockposition.getZ());
|
||||
@@ -25,6 +25,6 @@
|
||||
+ flag = eventRedstone.getNewCurrent() > 0;
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
if (((Boolean) iblockdata.get(BlockTrapdoor.OPEN)).booleanValue() != flag) {
|
||||
iblockdata = (IBlockData) iblockdata.set(BlockTrapdoor.OPEN, Boolean.valueOf(flag));
|
||||
if ((Boolean) iblockdata.get(BlockTrapdoor.OPEN) != flag) {
|
||||
iblockdata = (IBlockData) iblockdata.set(BlockTrapdoor.OPEN, flag);
|
||||
this.a((EntityHuman) null, world, blockposition, flag);
|
||||
|
||||
Reference in New Issue
Block a user