3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2025-01-11 23:50:54 +01:00
Paper/nms-patches/BlockDaylightDetector.patch

11 Zeilen
592 B
Diff

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 @@
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);
}