Verdigris torch

This commit is contained in:
2026-10-22 16:31:09 -03:00
parent db0589d965
commit 20e6ac6fbb
12 changed files with 500 additions and 73 deletions
+3 -1
View File
@@ -267,7 +267,9 @@ export function client_of(game: GameServer, area: Area) {
// what game_mode does when this client places held against face of x y z, at hit
place(id: string, x: number, y: number, z: number, yaw: number, face: Face, hit: [number, number, number]) {
const value = rules.placement_value(info(id)!, yaw, 0, { x, y, z, face, hit, sneaking: false });
copy.set(`${x} ${y} ${z}`, [id, value! >>> 16]);
// its rules say it can't go there
if (value === undefined) return;
copy.set(`${x} ${y} ${z}`, [id, value >>> 16]);
rules.notify_neighbors(x, y, z);
},
// what game_mode does when this client right clicks face of x y z, at hit. whether the rules did something