interactions for custom items
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -3,7 +3,6 @@ import { MenuFormBuilder } from '../MenuFormBuilder';
|
||||
import { StructureVerifier } from '../Verifier/StructureVerifier';
|
||||
import { StructureStatistics } from '../Structure/StructureStatistics';
|
||||
import { EntityComponentTypes, TicksPerSecond } from '@minecraft/server';
|
||||
import { BlockVerificationLevel } from '../Enums/BlockVerificationLevel';
|
||||
|
||||
export class InstanceFormBuilder {
|
||||
static structureVerifier;
|
||||
|
||||
Reference in New Issue
Block a user