mirror of
https://github.com/barkeser2002/CatServer.git
synced 2026-09-25 01:39:52 +03:00
11 lines
562 B
Diff
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);
|
|
}
|
|
}
|