Fix delta mouse bug while when closing inventory
This commit is contained in:
+1
-1
@@ -156,7 +156,7 @@ export class Client {
|
||||
}
|
||||
|
||||
if (InputManager.is_mouse_grabbed()) {
|
||||
const mouse = InputManager.get_mouse_delta();
|
||||
const mouse = InputManager.get_look_delta();
|
||||
player.turn(mouse.x, mouse.y);
|
||||
}
|
||||
InputManager.set_mouse_grabbed(!this.screen);
|
||||
|
||||
Reference in New Issue
Block a user