From a4ce846d07e8f5a0e350e49718aaf3d460658f0f Mon Sep 17 00:00:00 2001 From: Erik Broes Date: Sat, 14 Jan 2012 23:02:10 +0100 Subject: Fix formatting. --- src/main/java/net/minecraft/server/ItemBlock.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main/java/net/minecraft/server/ItemBlock.java') 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; -- cgit v1.2.3