Removed dragging behavior for fake slots from left right button.
This commit is contained in:
parent
1f75e16cee
commit
b7684d37ea
1 changed files with 12 additions and 8 deletions
|
@ -67,7 +67,8 @@ public abstract class AEBaseGui extends GuiContainer
|
||||||
static public boolean switchingGuis;
|
static public boolean switchingGuis;
|
||||||
private boolean subGui;
|
private boolean subGui;
|
||||||
|
|
||||||
public AEBaseGui(Container container) {
|
public AEBaseGui(Container container)
|
||||||
|
{
|
||||||
super( container );
|
super( container );
|
||||||
subGui = switchingGuis;
|
subGui = switchingGuis;
|
||||||
switchingGuis = false;
|
switchingGuis = false;
|
||||||
|
@ -417,14 +418,17 @@ public abstract class AEBaseGui extends GuiContainer
|
||||||
|
|
||||||
if ( slot instanceof SlotFake && itemstack != null )
|
if ( slot instanceof SlotFake && itemstack != null )
|
||||||
{
|
{
|
||||||
try
|
if ( c == 0 )
|
||||||
{
|
{
|
||||||
PacketInventoryAction p = new PacketInventoryAction( InventoryAction.PICKUP_OR_SETDOWN, slot.slotNumber, 0 );
|
try
|
||||||
NetworkHandler.instance.sendToServer( p );
|
{
|
||||||
}
|
PacketInventoryAction p = new PacketInventoryAction( InventoryAction.PICKUP_OR_SETDOWN, slot.slotNumber, 0 );
|
||||||
catch (IOException e)
|
NetworkHandler.instance.sendToServer( p );
|
||||||
{
|
}
|
||||||
AELog.error( e );
|
catch (IOException e)
|
||||||
|
{
|
||||||
|
AELog.error( e );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue