Reduce scope of variables

This commit is contained in:
thatsIch
2015-09-25 22:52:41 +02:00
parent f4ff28d2a6
commit 0387d30d1c
78 changed files with 174 additions and 218 deletions
+2 -3
View File
@@ -70,15 +70,14 @@ public class FMPEvent
BlockCoord pos = new BlockCoord( hit.blockX, hit.blockY, hit.blockZ ).offset( hit.sideHit );
ItemStack held = player.getHeldItem();
TMultiPart part = null;
Block blk = null;
if( held == null )
{
return false;
}
Block blk = null;
TMultiPart part = null;
if( held.getItem() instanceof AEBaseItemBlock )
{
AEBaseItemBlock ib = (AEBaseItemBlock) held.getItem();