fix last commit

This commit is contained in:
UnknownShadow200 2017-03-01 19:05:08 +11:00
parent 220d0a9132
commit f48e15561b
2 changed files with 2 additions and 1 deletions

View File

@ -145,7 +145,7 @@ namespace ClassicalSharp {
void ScrollHotbar(float deltaPrecise) {
Inventory inv = game.Inventory;
if (AltDown) {
inv.Offset = ScrolledIndex(deltaPrecise, inv.Offset);
inv.Offset = ScrolledIndex(deltaPrecise, inv.Offset) * Inventory.BlocksPerRow;
} else {
inv.SelectedIndex = ScrolledIndex(deltaPrecise, inv.SelectedIndex);
}

View File

@ -242,6 +242,7 @@ namespace Launcher {
bool IsShutdown(Key key) {
if (key == Key.F4 && (lastKey == Key.AltLeft || lastKey == Key.AltRight))
return true;
// On OSX, Cmd+Q should also terminate the process.
if (!OpenTK.Configuration.RunningOnMacOS) return false;
return key == Key.Q && (lastKey == Key.WinLeft || lastKey == Key.WinRight);