root.itemTags

This commit is contained in:
DBotThePony 2023-03-29 15:45:01 +07:00
parent 050dddcca7
commit 31b4ee2c32
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -453,6 +453,12 @@ class Starbound : ISBFileLocator {
1
}
state.setTableFunction("itemTags", this) { args ->
val name = args.getString()
args.lua.pushStrings(items[name]?.value?.itemTags ?: throw NoSuchElementException("No such item $name"))
1
}
state.pop()
state.load(polyfill, "@starbound.jar!/scripts/polyfill.lua")