mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-25 14:14:46 -04:00
fix last commit
This commit is contained in:
parent
220d0a9132
commit
f48e15561b
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user