mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-16 04:33:56 -07:00
Add missing calls to BlockRedstoneEvent. Adds BUKKIT-3926
This adds calls to BlockRedstoneEvent for the new daylight sensor and trapped chest blocks. Note that the redstone level for trapped chests cannot be modified, as it is based on the number of players currently viewing the chest's inventory.
This commit is contained in:
committed by
Travis Watkins
parent
1d6ff3461d
commit
5ede9ce5f7
@@ -48,6 +48,7 @@ public class BlockDaylightDetector extends BlockContainer {
|
||||
}
|
||||
|
||||
if (l != i1) {
|
||||
i1 = org.bukkit.craftbukkit.event.CraftEventFactory.callRedstoneChange(world, i, j, k, l, i1).getNewCurrent(); // CraftBukkit - Call BlockRedstoneEvent
|
||||
world.setData(i, j, k, i1, 3);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user