mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-29 08:32: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) {
|
void ScrollHotbar(float deltaPrecise) {
|
||||||
Inventory inv = game.Inventory;
|
Inventory inv = game.Inventory;
|
||||||
if (AltDown) {
|
if (AltDown) {
|
||||||
inv.Offset = ScrolledIndex(deltaPrecise, inv.Offset);
|
inv.Offset = ScrolledIndex(deltaPrecise, inv.Offset) * Inventory.BlocksPerRow;
|
||||||
} else {
|
} else {
|
||||||
inv.SelectedIndex = ScrolledIndex(deltaPrecise, inv.SelectedIndex);
|
inv.SelectedIndex = ScrolledIndex(deltaPrecise, inv.SelectedIndex);
|
||||||
}
|
}
|
||||||
|
@ -242,6 +242,7 @@ namespace Launcher {
|
|||||||
bool IsShutdown(Key key) {
|
bool IsShutdown(Key key) {
|
||||||
if (key == Key.F4 && (lastKey == Key.AltLeft || lastKey == Key.AltRight))
|
if (key == Key.F4 && (lastKey == Key.AltLeft || lastKey == Key.AltRight))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// On OSX, Cmd+Q should also terminate the process.
|
// On OSX, Cmd+Q should also terminate the process.
|
||||||
if (!OpenTK.Configuration.RunningOnMacOS) return false;
|
if (!OpenTK.Configuration.RunningOnMacOS) return false;
|
||||||
return key == Key.Q && (lastKey == Key.WinLeft || lastKey == Key.WinRight);
|
return key == Key.Q && (lastKey == Key.WinLeft || lastKey == Key.WinRight);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user