Files
CatServer/patches/net/minecraft/block/BlockDaylightDetector.java.patch
2019-02-24 22:29:41 +08:00

11 lines
562 B
Diff

--- ../src-base/minecraft/net/minecraft/block/BlockDaylightDetector.java
+++ ../src-work/minecraft/net/minecraft/block/BlockDaylightDetector.java
@@ -76,6 +76,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();
worldIn.setBlockState(pos, iblockstate.withProperty(POWER, Integer.valueOf(i)), 3);
}
}