summaryrefslogtreecommitdiffstats
path: root/nms-patches/BlockDaylightDetector.patch
blob: a9525a88cccd7fb96fe624939c96214971cdfd23 (plain)
1
2
3
4
5
6
7
8
9
10
--- a/net/minecraft/server/BlockDaylightDetector.java
+++ b/net/minecraft/server/BlockDaylightDetector.java
@@ -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);
             }