Simplified some control flow statements

This commit is contained in:
thatsIch
2014-10-09 21:33:31 +02:00
parent 6bc002fe63
commit 011ff54224
33 changed files with 64 additions and 78 deletions
@@ -118,7 +118,7 @@ public class TileCellWorkbench extends AEBaseTile implements IUpgradeableHost, I
@Override
public void onChangeInventory(IInventory inv, int slot, InvOperation mc, ItemStack removedStack, ItemStack newStack)
{
if ( inv == cell && locked == false )
if ( inv == cell && !locked )
{
locked = true;
@@ -161,7 +161,7 @@ public class TileCellWorkbench extends AEBaseTile implements IUpgradeableHost, I
locked = false;
}
else if ( inv == config && locked == false )
else if ( inv == config && !locked )
{
IInventory c = getCellConfigInventory();
if ( c != null )