sandstone-mc / sandstone

Sandstone | Next Generation Framework for Minecraft
https://sandstone.dev/
MIT License
166 stars 15 forks source link

Execute if score not functioning #225

Open TheEternalShine opened 7 months ago

TheEternalShine commented 7 months ago

The execute.if.score and execute.unless.score can error with certain arguments, this appears to be because of isScore's check no longer triggering correctly. (in src/commands/implementations/entity/execute.ts)

Example:

const TEST = Objective.create("test", "dummy");
MCFunction("test", () => {
  execute.unless.score(TEST("@s"), "=", TEST("@s")).run(() => {
    say("test");
  });
})