feat: rework commands and fix bugs

This commit is contained in:
ForestOfLight
2026-05-20 17:08:03 -07:00
Unverified
parent b1370b5d28
commit 7ea64d1e6a
38 changed files with 527 additions and 525 deletions
@@ -1,5 +1,6 @@
import { ItemStack, system } from "@minecraft/server";
import { Vector } from "../../lib/Vector";
import { InstanceNotPlacedError } from "../Errors/InstanceNotPlacedError";
class StructureMaterials {
instance;
@@ -21,11 +22,11 @@ class StructureMaterials {
system.runJob(this.populateActive());
else
system.runJob(this.populateAll());
} catch (e) {
if (e.name === 'InstanceNotPlacedError')
} catch (error) {
if (error instanceof InstanceNotPlacedError)
this.clear();
else
throw e;
throw error;
}
}