2015-05-25 20:37:24 +10:00
|
|
|
--- a/net/minecraft/server/BlockDaylightDetector.java
|
|
|
|
+++ b/net/minecraft/server/BlockDaylightDetector.java
|
2019-04-23 12:00:00 +10:00
|
|
|
@@ -43,6 +43,7 @@
|
2014-11-26 08:32:16 +11:00
|
|
|
|
2016-03-01 08:32:46 +11:00
|
|
|
i = MathHelper.clamp(i, 0, 15);
|
2018-12-06 10:00:00 +11:00
|
|
|
if ((Integer) iblockdata.get(BlockDaylightDetector.POWER) != i) {
|
2018-07-15 10:00:00 +10:00
|
|
|
+ i = org.bukkit.craftbukkit.event.CraftEventFactory.callRedstoneChange(world, blockposition, ((Integer) iblockdata.get(POWER)), i).getNewCurrent(); // CraftBukkit - Call BlockRedstoneEvent
|
2018-12-06 10:00:00 +11:00
|
|
|
world.setTypeAndData(blockposition, (IBlockData) iblockdata.set(BlockDaylightDetector.POWER, i), 3);
|
2014-11-26 08:32:16 +11:00
|
|
|
}
|
|
|
|
|