Removed not needed conditions

This commit is contained in:
thatsIch 2014-10-04 11:14:33 +02:00
parent 7e24f76e40
commit 54ecc29758

View file

@ -186,17 +186,13 @@ public abstract class AEBaseGui extends GuiContainer
if ( slot instanceof SlotFake ) if ( slot instanceof SlotFake )
{ {
InventoryAction action = null; final InventoryAction action = ctrlDown == 1 ? InventoryAction.SPLIT_OR_PLACE_SINGLE : InventoryAction.PICKUP_OR_SET_DOWN;
action = ctrlDown == 1 ? InventoryAction.SPLIT_OR_PLACE_SINGLE : InventoryAction.PICKUP_OR_SET_DOWN;
if ( drag_click.size() > 1 ) if ( drag_click.size() > 1 )
return; return;
if ( action != null ) PacketInventoryAction p = new PacketInventoryAction( action, slotIdx, 0 );
{ NetworkHandler.instance.sendToServer( p );
PacketInventoryAction p = new PacketInventoryAction( action, slotIdx, 0 );
NetworkHandler.instance.sendToServer( p );
}
return; return;
} }
@ -226,11 +222,8 @@ public abstract class AEBaseGui extends GuiContainer
else else
action = ctrlDown == 1 ? InventoryAction.CRAFT_STACK : InventoryAction.CRAFT_ITEM; action = ctrlDown == 1 ? InventoryAction.CRAFT_STACK : InventoryAction.CRAFT_ITEM;
if ( action != null ) PacketInventoryAction p = new PacketInventoryAction( action, slotIdx, 0 );
{ NetworkHandler.instance.sendToServer( p );
PacketInventoryAction p = new PacketInventoryAction( action, slotIdx, 0 );
NetworkHandler.instance.sendToServer( p );
}
return; return;
} }
@ -776,10 +769,7 @@ public abstract class AEBaseGui extends GuiContainer
this.zLevel = 0.0F; this.zLevel = 0.0F;
itemRender.zLevel = 0.0F; itemRender.zLevel = 0.0F;
if ( s instanceof SlotME ) aeRenderItem.aeStack = ((SlotME) s).getAEStack();
aeRenderItem.aeStack = ((SlotME) s).getAEStack();
else
aeRenderItem.aeStack = null;
safeDrawSlot( s ); safeDrawSlot( s );
} }