2015-05-25 12:37:24 +02:00
|
|
|
--- a/net/minecraft/server/BlockDaylightDetector.java
|
|
|
|
+++ b/net/minecraft/server/BlockDaylightDetector.java
|
2018-07-15 02:00:00 +02:00
|
|
|
@@ -36,6 +36,7 @@
|
2014-11-25 22:32:16 +01:00
|
|
|
|
2016-02-29 22:32:46 +01:00
|
|
|
i = MathHelper.clamp(i, 0, 15);
|
2014-11-25 22:32:16 +01:00
|
|
|
if (((Integer) iblockdata.get(BlockDaylightDetector.POWER)).intValue() != i) {
|
2018-07-15 02:00:00 +02:00
|
|
|
+ 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, Integer.valueOf(i)), 3);
|
2014-11-25 22:32:16 +01:00
|
|
|
}
|
|
|
|
|