Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-21 05:50:05 +01:00
11 Zeilen
660 B
Diff
11 Zeilen
660 B
Diff
--- a/net/minecraft/server/BlockDaylightDetector.java
|
|
+++ b/net/minecraft/server/BlockDaylightDetector.java
|
|
@@ -46,6 +46,7 @@
|
|
|
|
i = MathHelper.clamp(i, 0, 15);
|
|
if (((Integer) iblockdata.get(BlockDaylightDetector.POWER)).intValue() != i) {
|
|
+ i = org.bukkit.craftbukkit.event.CraftEventFactory.callRedstoneChange(world, blockposition.getX(), blockposition.getY(), blockposition.getZ(), ((Integer) iblockdata.get(POWER)), i).getNewCurrent(); // CraftBukkit - Call BlockRedstoneEvent
|
|
world.setTypeAndData(blockposition, iblockdata.set(BlockDaylightDetector.POWER, Integer.valueOf(i)), 3);
|
|
}
|
|
|