summaryrefslogtreecommitdiffstats
path: root/nms-patches/BlockButtonAbstract.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/BlockButtonAbstract.patch')
-rw-r--r--nms-patches/BlockButtonAbstract.patch12
1 files changed, 6 insertions, 6 deletions
diff --git a/nms-patches/BlockButtonAbstract.patch b/nms-patches/BlockButtonAbstract.patch
index 27e38ee5..d114d927 100644
--- a/nms-patches/BlockButtonAbstract.patch
+++ b/nms-patches/BlockButtonAbstract.patch
@@ -1,8 +1,8 @@
--- a/net/minecraft/server/BlockButtonAbstract.java
+++ b/net/minecraft/server/BlockButtonAbstract.java
-@@ -3,6 +3,11 @@
- import java.util.List;
+@@ -4,6 +4,11 @@
import java.util.Random;
+ import javax.annotation.Nullable;
+// CraftBukkit start
+import org.bukkit.event.block.BlockRedstoneEvent;
@@ -12,7 +12,7 @@
public abstract class BlockButtonAbstract extends BlockDirectional {
public static final BlockStateBoolean POWERED = BlockStateBoolean.of("powered");
-@@ -121,6 +126,19 @@
+@@ -123,6 +128,19 @@
if (((Boolean) iblockdata.get(BlockButtonAbstract.POWERED)).booleanValue()) {
return true;
} else {
@@ -32,7 +32,7 @@
world.setTypeAndData(blockposition, iblockdata.set(BlockButtonAbstract.POWERED, Boolean.valueOf(true)), 3);
world.b(blockposition, blockposition);
this.a(entityhuman, world, blockposition);
-@@ -162,6 +180,16 @@
+@@ -164,6 +182,16 @@
if (this.I) {
this.e(iblockdata, world, blockposition);
} else {
@@ -49,7 +49,7 @@
world.setTypeUpdate(blockposition, iblockdata.set(BlockButtonAbstract.POWERED, Boolean.valueOf(false)));
this.c(world, blockposition, (EnumDirection) iblockdata.get(BlockButtonAbstract.FACING));
this.b(world, blockposition);
-@@ -187,7 +215,41 @@
+@@ -189,7 +217,41 @@
boolean flag = !list.isEmpty();
boolean flag1 = ((Boolean) iblockdata.get(BlockButtonAbstract.POWERED)).booleanValue();
@@ -91,7 +91,7 @@
world.setTypeUpdate(blockposition, iblockdata.set(BlockButtonAbstract.POWERED, Boolean.valueOf(true)));
this.c(world, blockposition, (EnumDirection) iblockdata.get(BlockButtonAbstract.FACING));
world.b(blockposition, blockposition);
-@@ -195,6 +257,16 @@
+@@ -197,6 +259,16 @@
}
if (!flag && flag1) {