Sashie / skript-yaml

The proper way to do yaml in skript
MIT License
32 stars 22 forks source link

Updating Skript from v2.5.3 to v2.6-beta3 somehow broke loop-list #37

Closed oskarkk closed 1 year ago

oskarkk commented 3 years ago

test.sk:

on script load:
  load yml "plugins/Skript/scripts/test.yml" as "test"

command /test:
  trigger:
    loop yaml node list "abc" from "test":
      log "%loop-list%"

test.yml:

abc:
  foo:
   - 1
   - 2
  bar:
   - 3
   - 4

Result on Skript v2.5.3:

> test
[03:59:05 Server thread/INFO] [Skript] [test.sk] 1 and 2
[03:59:05 Server thread/INFO] [Skript] [test.sk] 3 and 4

Result on v2.6-beta3:

> test
[03:57:58 Server thread/INFO] [Skript] [test.sk] abc.foo
[03:57:58 Server thread/INFO] [Skript] [test.sk] abc.bar

The bug is the same on skript-yaml v1.4 and v1.3.2

wallace4BR commented 3 years ago

currently caused by some changes on skript 2.6, in the next skript-yaml version this bug will be fixed

oskarkk commented 3 years ago

Okay, thanks. Just found that loop-key also gives the whole node path.