diff options
author | Erik Broes <erikbroes@grum.nl> | 2012-01-14 23:02:10 +0100 |
---|---|---|
committer | Erik Broes <erikbroes@grum.nl> | 2012-01-15 10:54:57 +0100 |
commit | a4ce846d07e8f5a0e350e49718aaf3d460658f0f (patch) | |
tree | 82ded19ce8c16a80ec989628a3e35c8e4b0bde24 /src/main/java/net/minecraft/server/ItemBlock.java | |
parent | 61ec751ca11f5bff9ec2dd1644982d5628270004 (diff) | |
download | craftbukkit-a4ce846d07e8f5a0e350e49718aaf3d460658f0f.tar craftbukkit-a4ce846d07e8f5a0e350e49718aaf3d460658f0f.tar.gz craftbukkit-a4ce846d07e8f5a0e350e49718aaf3d460658f0f.tar.lz craftbukkit-a4ce846d07e8f5a0e350e49718aaf3d460658f0f.tar.xz craftbukkit-a4ce846d07e8f5a0e350e49718aaf3d460658f0f.zip |
Fix formatting.
Diffstat (limited to 'src/main/java/net/minecraft/server/ItemBlock.java')
-rw-r--r-- | src/main/java/net/minecraft/server/ItemBlock.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/net/minecraft/server/ItemBlock.java b/src/main/java/net/minecraft/server/ItemBlock.java index dfe188bf..7045077a 100644 --- a/src/main/java/net/minecraft/server/ItemBlock.java +++ b/src/main/java/net/minecraft/server/ItemBlock.java @@ -71,8 +71,7 @@ public class ItemBlock extends Item { CraftBlockState blockStateBelow = null; // Toggles whether the normal or the block below is used for the place event boolean eventUseBlockBelow = false; - if ((world.getTypeId(i, j - 1, k) == Block.STEP.id || world.getTypeId(i, j - 1, k) == Block.DOUBLE_STEP.id) - && (itemstack.id == Block.DOUBLE_STEP.id || itemstack.id == Block.STEP.id)) { + if ((world.getTypeId(i, j - 1, k) == Block.STEP.id || world.getTypeId(i, j - 1, k) == Block.DOUBLE_STEP.id) && (itemstack.id == Block.DOUBLE_STEP.id || itemstack.id == Block.STEP.id)) { blockStateBelow = CraftBlockState.getBlockState(world, i, j - 1, k); // Step is placed on step, forms a doublestep replacing the original step, so we need the lower block eventUseBlockBelow = itemstack.id == Block.STEP.id && blockStateBelow.getTypeId() == Block.STEP.id; |