@@ -8,20 +8,20 @@
|
||||
+
|
||||
public class BlockRedstoneWire extends Block {
|
||||
|
||||
public static final BlockStateEnum<BlockPropertyRedstoneSide> NORTH = BlockProperties.M;
|
||||
@@ -216,6 +218,15 @@
|
||||
j = k;
|
||||
public static final BlockStateEnum<BlockPropertyRedstoneSide> NORTH = BlockProperties.R;
|
||||
@@ -206,6 +208,15 @@
|
||||
l = j;
|
||||
}
|
||||
|
||||
+ // CraftBukkit start
|
||||
+ if (i != j) {
|
||||
+ BlockRedstoneEvent event = new BlockRedstoneEvent(world.getWorld().getBlockAt(blockposition.getX(), blockposition.getY(), blockposition.getZ()), i, j);
|
||||
+ if (i != l) {
|
||||
+ BlockRedstoneEvent event = new BlockRedstoneEvent(world.getWorld().getBlockAt(blockposition.getX(), blockposition.getY(), blockposition.getZ()), i, l);
|
||||
+ world.getServer().getPluginManager().callEvent(event);
|
||||
+
|
||||
+ j = event.getNewCurrent();
|
||||
+ l = event.getNewCurrent();
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
+
|
||||
if (i != j) {
|
||||
iblockdata = (IBlockData) iblockdata.set(BlockRedstoneWire.POWER, j);
|
||||
if (i != l) {
|
||||
iblockdata = (IBlockData) iblockdata.set(BlockRedstoneWire.POWER, l);
|
||||
if (world.getType(blockposition) == iblockdata1) {
|
||||
|
||||
Reference in New Issue
Block a user