Render a hand

This commit is contained in:
2026-09-27 00:18:16 -03:00
parent a2cf590315
commit 535bd36d91
5 changed files with 140 additions and 61 deletions
+5
View File
@@ -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);