Fixed Bug: #0518 - Using the WAT and switch via quickslots closes WAT GUI

This commit is contained in:
AlgorithmX2 2014-06-08 18:10:25 -05:00
parent 8dcf25a652
commit 3d8a129531

View file

@ -293,6 +293,17 @@ public abstract class AEBaseGui extends GuiContainer
{
if ( p_146983_1_ == this.mc.gameSettings.keyBindsHotbar[j].getKeyCode() )
{
for (Slot s : (List<Slot>) inventorySlots.inventorySlots)
{
if ( s.getSlotIndex() == j && s.inventory == ((AEBaseContainer) inventorySlots).getPlayerInv() )
{
if ( !s.canTakeStack( ((AEBaseContainer) inventorySlots).getPlayerInv().player ) )
{
return false;
}
}
}
if ( theSlot.getSlotStackLimit() == 64 )
{
this.handleMouseClick( theSlot, theSlot.slotNumber, j, 2 );