Render a hand
This commit is contained in:
@@ -235,6 +235,11 @@ export class Client {
|
||||
return;
|
||||
}
|
||||
|
||||
// the held item swings on every click, and keeps swinging while breaking, like minecraft
|
||||
if (InputManager.is_mouse_pressed(0) || InputManager.is_mouse_pressed(2) || (attacking && hit)) {
|
||||
this.game_renderer.hand.swing();
|
||||
}
|
||||
|
||||
if (hit) {
|
||||
if (InputManager.is_mouse_pressed(0)) {
|
||||
this.game_mode.start_destroy_block(hit);
|
||||
|
||||
Reference in New Issue
Block a user