implement first person hand

(cherry picked from commit bfe5a2eaca2858a7ccde1df847e2148dd79f4045)
This commit is contained in:
LabyStudio
2022-05-02 02:45:24 +02:00
parent 230ea8d11e
commit 800134b26b
18 changed files with 345 additions and 114 deletions
+4
View File
@@ -192,6 +192,9 @@ export default class Minecraft {
// Tick world
this.world.onTick();
// Tick renderer
this.worldRenderer.onTick();
// Tick the player
this.player.onUpdate();
}
@@ -218,6 +221,7 @@ export default class Minecraft {
if (button === this.settings.togglePerspective) {
this.settings.thirdPersonView = (this.settings.thirdPersonView + 1) % 3;
this.settings.save();
}
}