Always use {} for control statements

This commit is contained in:
yueh
2017-07-20 21:24:58 +02:00
parent 406013142e
commit f9cad0758d
7 changed files with 32 additions and 0 deletions
@@ -175,10 +175,14 @@ class ItemHandlerAdapter implements IMEInventory<IAEItemStack>, IBaseMonitor<IAE
private ItemStack getItemStackInCachedSlot( int pos )
{
if( pos > cachedStacks.length )
{
return ItemStack.EMPTY;
}
if( cachedStacks[pos] == null )
{
return ItemStack.EMPTY;
}
return cachedStacks[pos];
}