mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2024-11-25 13:56:14 +00:00
11 lines
603 B
Diff
11 lines
603 B
Diff
--- a/net/minecraft/world/level/block/BlockDaylightDetector.java
|
|
+++ b/net/minecraft/world/level/block/BlockDaylightDetector.java
|
|
@@ -74,6 +74,7 @@
|
|
|
|
i = MathHelper.clamp(i, 0, 15);
|
|
if ((Integer) iblockdata.getValue(BlockDaylightDetector.POWER) != i) {
|
|
+ i = org.bukkit.craftbukkit.event.CraftEventFactory.callRedstoneChange(world, blockposition, ((Integer) iblockdata.getValue(POWER)), i).getNewCurrent(); // CraftBukkit - Call BlockRedstoneEvent
|
|
world.setBlock(blockposition, (IBlockData) iblockdata.setValue(BlockDaylightDetector.POWER, i), 3);
|
|
}
|
|
|