diff options
author | EvilSeph <evilseph@unaligned.org> | 2011-06-14 22:50:39 -0400 |
---|---|---|
committer | EvilSeph <evilseph@unaligned.org> | 2011-06-15 14:56:20 -0400 |
commit | e2c9e92d98d94931ce78c68d893c0d916fbbdf47 (patch) | |
tree | ec74df303cee1d6268abe57ac208c0942b9b0426 /src/main | |
parent | 9d8428607b2c62ffd2054b14144b839a00131761 (diff) | |
download | craftbukkit-e2c9e92d98d94931ce78c68d893c0d916fbbdf47.tar craftbukkit-e2c9e92d98d94931ce78c68d893c0d916fbbdf47.tar.gz craftbukkit-e2c9e92d98d94931ce78c68d893c0d916fbbdf47.tar.lz craftbukkit-e2c9e92d98d94931ce78c68d893c0d916fbbdf47.tar.xz craftbukkit-e2c9e92d98d94931ce78c68d893c0d916fbbdf47.zip |
Properly fixed BlockPlace event for Redstone wire.
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/net/minecraft/server/ItemRedstone.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/ItemRedstone.java b/src/main/java/net/minecraft/server/ItemRedstone.java index 4ef590c7..b6be5fa6 100644 --- a/src/main/java/net/minecraft/server/ItemRedstone.java +++ b/src/main/java/net/minecraft/server/ItemRedstone.java @@ -49,6 +49,8 @@ public class ItemRedstone extends Item { if (Block.REDSTONE_WIRE.canPlace(world, i, j, k)) { BlockState blockState = CraftBlockState.getBlockState(world, i, j, k); // CraftBukkit + world.setRawTypeId(i, j, k, Block.REDSTONE_WIRE.id); // CraftBukkit - We update after the event + // CraftBukkit start - redstone BlockPlaceEvent event = CraftEventFactory.callBlockPlaceEvent(world, entityhuman, blockState, clickedX, clickedY, clickedZ, Block.REDSTONE_WIRE); @@ -57,7 +59,7 @@ public class ItemRedstone extends Item { return false; } - world.setTypeId(i, j, k, Block.REDSTONE_WIRE.id); // CraftBukkit - Must take place after BlockPlaceEvent + world.update( i, j, k, Block.REDSTONE_WIRE.id); // Must take place after BlockPlaceEvent, we need to update all other blocks. // CraftBukkit end --itemstack.count; // CraftBukkit - ORDER MATTERS |