summaryrefslogtreecommitdiffstats
path: root/nms-patches/BlockDoor.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/BlockDoor.patch')
-rw-r--r--nms-patches/BlockDoor.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/nms-patches/BlockDoor.patch b/nms-patches/BlockDoor.patch
index 2e1dfe91..0de53123 100644
--- a/nms-patches/BlockDoor.patch
+++ b/nms-patches/BlockDoor.patch
@@ -1,15 +1,15 @@
--- a/net/minecraft/server/BlockDoor.java
+++ b/net/minecraft/server/BlockDoor.java
-@@ -2,6 +2,8 @@
-
+@@ -3,6 +3,8 @@
import java.util.Random;
+ import javax.annotation.Nullable;
+import org.bukkit.event.block.BlockRedstoneEvent; // CraftBukkit
+
public class BlockDoor extends Block {
public static final BlockStateDirection FACING = BlockFacingHorizontal.FACING;
-@@ -137,9 +139,22 @@
+@@ -138,9 +140,22 @@
this.b(world, blockposition, iblockdata, 0);
}
} else {
@@ -34,7 +34,7 @@
world.setTypeAndData(blockposition2, iblockdata2.set(BlockDoor.POWERED, Boolean.valueOf(flag1)), 2);
if (flag1 != ((Boolean) iblockdata.get(BlockDoor.OPEN)).booleanValue()) {
world.setTypeAndData(blockposition, iblockdata.set(BlockDoor.OPEN, Boolean.valueOf(flag1)), 2);
-@@ -147,6 +162,7 @@
+@@ -148,6 +163,7 @@
world.a((EntityHuman) null, flag1 ? this.g() : this.e(), blockposition, 0);
}
}