Files
CatServer/patches/net/minecraft/block/BlockDaylightDetector.java.patch
2018-09-08 17:51:33 +08:00

11 lines
603 B
Diff

--- ../src-base/minecraft/net/minecraft/block/BlockDaylightDetector.java
+++ ../src-work/minecraft/net/minecraft/block/BlockDaylightDetector.java
@@ -78,6 +78,7 @@
if (((Integer)iblockstate.getValue(POWER)).intValue() != i)
{
+ i = org.bukkit.craftbukkit.event.CraftEventFactory.callRedstoneChange(worldIn, pos.getX(), pos.getY(), pos.getZ(), iblockstate.getValue(POWER), i).getNewCurrent(); // CraftBukkit - Call BlockRedstoneEvent
worldIn.setBlockState(pos, iblockstate.withProperty(POWER, Integer.valueOf(i)), 3);
}
}