formating fixes

This commit is contained in:
Salomão
2020-10-28 17:50:40 -03:00
parent d6499c16b0
commit b2a660ec9b
@@ -759,8 +759,10 @@ public class DualityInterface implements IGridTickable, IStorageMonitorable, IIn
private boolean handleCrafting( final int x, final InventoryAdaptor d, final IAEItemStack itemStack ) private boolean handleCrafting( final int x, final InventoryAdaptor d, final IAEItemStack itemStack )
{ {
try { try
if (this.getInstalledUpgrades(Upgrades.CRAFTING) > 0 && itemStack != null) { {
if( this.getInstalledUpgrades( Upgrades.CRAFTING ) > 0 && itemStack != null )
{
this.craftingTracker.handleCrafting( x, itemStack.getStackSize(), itemStack, d, this.iHost.getTileEntity().getWorld(), this.craftingTracker.handleCrafting( x, itemStack.getStackSize(), itemStack, d, this.iHost.getTileEntity().getWorld(),
this.gridProxy.getGrid(), this.gridProxy.getCrafting(), this.mySource ); this.gridProxy.getGrid(), this.gridProxy.getCrafting(), this.mySource );
@@ -896,7 +898,8 @@ public class DualityInterface implements IGridTickable, IStorageMonitorable, IIn
}; };
} }
private static boolean invIsBlocked(InventoryAdaptor inv) { private static boolean invIsBlocked( InventoryAdaptor inv )
{
if( AEConfig.instance().isFeatureEnabled( AEFeature.INSANE_BLOCKING_MODE ) ) if( AEConfig.instance().isFeatureEnabled( AEFeature.INSANE_BLOCKING_MODE ) )
{ {
return !inv.simulateRemove( 1, ItemStack.EMPTY, null ).isEmpty(); return !inv.simulateRemove( 1, ItemStack.EMPTY, null ).isEmpty();