3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-24 07:10:10 +01:00
Paper/nms-patches/BlockDaylightDetector.patch

11 Zeilen
592 B
Diff

2015-05-25 12:37:24 +02:00
--- a/net/minecraft/server/BlockDaylightDetector.java
+++ b/net/minecraft/server/BlockDaylightDetector.java
2019-04-23 04:00:00 +02:00
@@ -43,6 +43,7 @@
2016-02-29 22:32:46 +01:00
i = MathHelper.clamp(i, 0, 15);
2018-12-06 00:00:00 +01:00
if ((Integer) iblockdata.get(BlockDaylightDetector.POWER) != 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
2018-12-06 00:00:00 +01:00
world.setTypeAndData(blockposition, (IBlockData) iblockdata.set(BlockDaylightDetector.POWER, i), 3);
}