Alt+Click in inventory menu should not close the menu (Thanks FabTheZen), closes #163.

This commit is contained in:
UnknownShadow200 2016-04-08 23:41:38 +10:00
parent 0866009fef
commit 1934749aa1

View File

@ -45,7 +45,10 @@ namespace ClassicalSharp.Gui {
game.Inventory.HeldBlock = blocksTable[selIndex];
else if( Contains( TableX, TableY, TableWidth, TableHeight, mouseX, mouseY ) )
return true;
game.SetNewScreen( null );
bool hotbar = game.IsKeyDown( Key.AltLeft ) || game.IsKeyDown( Key.AltRight );
if( !hotbar )
game.SetNewScreen( null );
}
return true;
}