mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 07:48:53 +01:00
10 lines
592 B
Diff
10 lines
592 B
Diff
--- a/net/minecraft/server/BlockDaylightDetector.java
|
|
+++ b/net/minecraft/server/BlockDaylightDetector.java
|
|
@@ -36,6 +36,7 @@
|
|
|
|
i = MathHelper.clamp(i, 0, 15);
|
|
if ((Integer) iblockdata.get(BlockDaylightDetector.POWER) != i) {
|
|
+ i = org.bukkit.craftbukkit.event.CraftEventFactory.callRedstoneChange(world, blockposition, ((Integer) iblockdata.get(POWER)), i).getNewCurrent(); // CraftBukkit - Call BlockRedstoneEvent
|
|
world.setTypeAndData(blockposition, (IBlockData) iblockdata.set(BlockDaylightDetector.POWER, i), 3);
|
|
}
|
|
|