summaryrefslogtreecommitdiffstats
path: root/nms-patches/BlockDiodeAbstract.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/BlockDiodeAbstract.patch')
-rw-r--r--nms-patches/BlockDiodeAbstract.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/nms-patches/BlockDiodeAbstract.patch b/nms-patches/BlockDiodeAbstract.patch
index 36e5c204..e5d9e7d5 100644
--- a/nms-patches/BlockDiodeAbstract.patch
+++ b/nms-patches/BlockDiodeAbstract.patch
@@ -18,13 +18,13 @@
+ return;
+ }
+ // CraftBukkit end
- world.setTypeAndData(blockposition, this.y(iblockdata), 2);
+ world.setTypeAndData(blockposition, this.A(iblockdata), 2);
} else if (!this.d) {
+ // CraftBukkit start
+ if (CraftEventFactory.callRedstoneChange(world, blockposition.getX(), blockposition.getY(), blockposition.getZ(), 0, 15).getNewCurrent() != 15) {
+ return;
+ }
+ // CraftBukkit end
- world.setTypeAndData(blockposition, this.x(iblockdata), 2);
+ world.setTypeAndData(blockposition, this.z(iblockdata), 2);
if (!flag) {
- world.a(blockposition, this.x(iblockdata).getBlock(), this.D(iblockdata), -1);
+ world.a(blockposition, this.z(iblockdata).getBlock(), this.F(iblockdata), -1);