summaryrefslogtreecommitdiffstats
path: root/nms-patches/BlockDaylightDetector.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/BlockDaylightDetector.patch')
-rw-r--r--nms-patches/BlockDaylightDetector.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/nms-patches/BlockDaylightDetector.patch b/nms-patches/BlockDaylightDetector.patch
index ba111082..a9525a88 100644
--- a/nms-patches/BlockDaylightDetector.patch
+++ b/nms-patches/BlockDaylightDetector.patch
@@ -1,8 +1,8 @@
--- a/net/minecraft/server/BlockDaylightDetector.java
+++ b/net/minecraft/server/BlockDaylightDetector.java
-@@ -41,6 +41,7 @@
- }
+@@ -45,6 +45,7 @@
+ i = MathHelper.clamp(i, 0, 15);
if (((Integer) iblockdata.get(BlockDaylightDetector.POWER)).intValue() != i) {
+ i = org.bukkit.craftbukkit.event.CraftEventFactory.callRedstoneChange(world, blockposition.getX(), blockposition.getY(), blockposition.getZ(), ((Integer) iblockdata.get(POWER)), i).getNewCurrent(); // CraftBukkit - Call BlockRedstoneEvent
world.setTypeAndData(blockposition, iblockdata.set(BlockDaylightDetector.POWER, Integer.valueOf(i)), 3);