implement first person item in hand rendering

(cherry picked from commit 647b7dc98e1fa80c5ba72a560b03cf447fc65bd4)
This commit is contained in:
LabyStudio
2022-05-02 04:15:06 +02:00
parent 800134b26b
commit 862a97f9e8
11 changed files with 130 additions and 58 deletions
+3
View File
@@ -287,6 +287,9 @@ export default class Minecraft {
// Place block
this.world.setBlockAt(x, y, z, typeId);
// Swing player arm
this.player.swingArm();
// Handle block abilities
let block = Block.getById(typeId);
block.onBlockPlaced(this.world, x, y, z, hitResult.face);