LiteLDev / LegacyScriptEngine

A plugin engine for running LLSE plugins on LeviLamina
GNU General Public License v3.0
48 stars 8 forks source link

fix: fix getAllTags #56

Closed yhzx233 closed 8 months ago

yhzx233 commented 8 months ago

What does this PR do?

修复 getAllTags 会返回空数组,原本调用的 forEachCompoundTag 似乎并不能遍历 ListTag 的元素,而且获取玩家 NBT 性能也不太行,实际上只要调用 MCAPI getTags 就行了。

Checklist before merging

Thank you for your contribution to the repository. Before submitting this PR, please make sure: