interactions for custom items

This commit is contained in:
ForestOfLight
2025-06-07 20:48:41 -07:00
Unverified
parent 137100114a
commit 597e0c7d79
9 changed files with 132 additions and 37 deletions
@@ -25,12 +25,12 @@ export class BuilderOption {
}
setValue(playerId, value) {
if (value)
this.#onEnable(playerId);
else
this.#onDisable(playerId);
if (this.isEnabled(playerId) !== value) {
this.save(playerId, value);
if (value)
this.#onEnable(playerId);
else
this.#onDisable(playerId);
return value;
}
this.save(playerId, value);