diff options
author | Erik Broes <erikbroes@grum.nl> | 2011-05-14 16:29:42 +0200 |
---|---|---|
committer | Erik Broes <erikbroes@grum.nl> | 2011-05-15 13:41:46 +0200 |
commit | 309846d732849b68e382c53bf3a0d7a6dfd82579 (patch) | |
tree | 020932a024cd2fb20895f5834a2bde7dbdfea583 /src/main/java/net/minecraft/server/ItemReed.java | |
parent | e54d8c33529b9495b9ca1a610dc2ff9fc5ac84b5 (diff) | |
download | craftbukkit-309846d732849b68e382c53bf3a0d7a6dfd82579.tar craftbukkit-309846d732849b68e382c53bf3a0d7a6dfd82579.tar.gz craftbukkit-309846d732849b68e382c53bf3a0d7a6dfd82579.tar.lz craftbukkit-309846d732849b68e382c53bf3a0d7a6dfd82579.tar.xz craftbukkit-309846d732849b68e382c53bf3a0d7a6dfd82579.zip |
Whitespace + general cleanup
Diffstat (limited to 'src/main/java/net/minecraft/server/ItemReed.java')
-rw-r--r-- | src/main/java/net/minecraft/server/ItemReed.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/net/minecraft/server/ItemReed.java b/src/main/java/net/minecraft/server/ItemReed.java index d4bb4be7..ec4ddb63 100644 --- a/src/main/java/net/minecraft/server/ItemReed.java +++ b/src/main/java/net/minecraft/server/ItemReed.java @@ -17,7 +17,7 @@ public class ItemReed extends Item { } public boolean a(ItemStack itemstack, EntityHuman entityhuman, World world, int i, int j, int k, int l) { - int clickedX = i, clickedY = j, clickedZ = k; // CraftBukkit; + int clickedX = i, clickedY = j, clickedZ = k; // CraftBukkit if (world.getTypeId(i, j, k) == Block.SNOW.id) { l = 0; @@ -57,7 +57,7 @@ public class ItemReed extends Item { BlockState replacedBlockState = CraftBlockState.getBlockState(world, i, j, k); // CraftBukkit /** * @see net.minecraft.server.World#setTypeId(int i, int j, int k, int l) - * + * * This replaces world.setTypeId(IIII), we're doing this because we need to * hook between the 'placement' and the informing to 'world' so we can * sanely undo this. @@ -69,7 +69,7 @@ public class ItemReed extends Item { BlockPlaceEvent event = CraftEventFactory.callBlockPlaceEvent(world, entityhuman, replacedBlockState, clickedX, clickedY, clickedZ, block); if (event.isCancelled() || !event.canBuild()) { - // CraftBukkit Undo -- this only has reed, repeater and pie blocks + // CraftBukkit - undo; this only has reed, repeater and pie blocks world.setTypeIdAndData(i, j, k, replacedBlockState.getTypeId(), replacedBlockState.getRawData()); } else { world.update(i, j, k, this.id); // <-- world.setTypeId does this on success (tell the world) |