mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-18 03:44:54 -04:00
Fixes DropItemStack keybind
This commit is contained in:
parent
1f4dd9fc92
commit
82b2cabecc
@ -234,17 +234,17 @@ class Camera(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ToDo: This has nothing todo with the camera, should be in the interaction manager
|
// ToDo: This has nothing todo with the camera, should be in the interaction manager
|
||||||
renderWindow.inputHandler.registerKeyCallback(DROP_ITEM_KEYBINDING, KeyBinding(
|
|
||||||
mapOf(
|
|
||||||
KeyAction.PRESS to setOf(KeyCodes.KEY_Q),
|
|
||||||
),
|
|
||||||
)) { dropItem(false) }
|
|
||||||
renderWindow.inputHandler.registerKeyCallback(DROP_ITEM_STACK_KEYBINDING, KeyBinding(
|
renderWindow.inputHandler.registerKeyCallback(DROP_ITEM_STACK_KEYBINDING, KeyBinding(
|
||||||
mapOf(
|
mapOf(
|
||||||
KeyAction.PRESS to setOf(KeyCodes.KEY_Q),
|
KeyAction.PRESS to setOf(KeyCodes.KEY_Q),
|
||||||
KeyAction.MODIFIER to setOf(KeyCodes.KEY_LEFT_CONTROL)
|
KeyAction.MODIFIER to setOf(KeyCodes.KEY_LEFT_CONTROL)
|
||||||
),
|
),
|
||||||
)) { dropItem(true) }
|
)) { dropItem(true) }
|
||||||
|
renderWindow.inputHandler.registerKeyCallback(DROP_ITEM_KEYBINDING, KeyBinding(
|
||||||
|
mapOf(
|
||||||
|
KeyAction.PRESS to setOf(KeyCodes.KEY_Q),
|
||||||
|
),
|
||||||
|
)) { dropItem(false) }
|
||||||
frustum.recalculate()
|
frustum.recalculate()
|
||||||
connection.fireEvent(FrustumChangeEvent(renderWindow, frustum))
|
connection.fireEvent(FrustumChangeEvent(renderWindow, frustum))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user