mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-29 19:52:55 +01:00
9 lines
522 B
Diff
9 lines
522 B
Diff
|
@@ -41,6 +41,7 @@
|
||
|
}
|
||
|
|
||
|
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);
|
||
|
}
|
||
|
|