Fixed Bug: #0518 - Using the WAT and switch via quickslots closes WAT GUI
This commit is contained in:
parent
8dcf25a652
commit
3d8a129531
1 changed files with 11 additions and 0 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue