actually useful

This commit is contained in:
2026-07-03 22:54:51 -04:00
parent a702916de3
commit 38feb21951
4 changed files with 149 additions and 126 deletions

View File

@@ -9,6 +9,10 @@ export class World {
this.blocks.set(key, { id, x, y, z, props });
}
removeBlock(x, y, z) {
this.blocks.delete(`${x},${y},${z}`);
}
updateBlock(x, y, z, newProps) {
const key = `${x},${y},${z}`;
const block = this.blocks.get(key);