Trapdoors

This commit is contained in:
2026-10-03 17:52:58 -03:00
parent 91655c28c5
commit 63e6248f9f
35 changed files with 927 additions and 23 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ export class MultiPlayerGameMode {
const level = this.client.level;
// the server checks that the block isn't going inside the player with where it is now, like this does
this.client.player.send_position_now();
this.client.connection.send({ type: "use_block", x: hit.x, y: hit.y, z: hit.z, face: hit.face });
this.client.connection.send({ type: "use_block", x: hit.x, y: hit.y, z: hit.z, face: hit.face, hit: hit.hit });
// guess that it places the held block, unless the block does something when used. the same rules as the server:
// into the clicked block when it's replaceable, and only where place_in and place_on allow