LiteLDev / LegacyScriptEngine

A plugin engine for running LLSE plugins on LeviLamina
https://lse.liteldev.com/
GNU General Public License v3.0
43 stars 8 forks source link

[Bug]: LSE0.7.6 NBT.parseSNBT(snbt) api失效 #122

Closed Hurry1027 closed 4 months ago

Hurry1027 commented 4 months ago

Describe the bug

NBT.parseSNBT(snbt) api失效,解析玩家SNBT返回为null。

To Reproduce

jsdebug 15:00:43.328 INFO [legacy-script-engine-quickjs] Debug mode begins NBT.parseSNBT(mc.getOnlinePlayers()[0].getNbt().toSNBT()) 15:01:18.157 INFO [legacy-script-engine-quickjs] Null mc.getOnlinePlayers()[0].getNbt().toSNBT().length 15:01:28.985 INFO [legacy-script-engine-quickjs] 71772

Expected behavior

修复此问题,谢谢大佬~ 返回玩家NBT而不是null

Screenshots

No response

Platform

No response

BDS Version

1.20.81

LeviLamina Version

0.12.1

LegacyScriptEngine Version

0.7.6

Additional context

No response

ShrBox commented 4 months ago

图片 在添加了向控制台输出错误信息后,我得到了"数字超出范围"的错误 一眼丁真,鉴定为LeviLamina的问题

ShrBox commented 4 months ago

已于 https://github.com/LiteLDev/LeviLamina/commit/c94d1408e6a00a3b93a8371c9abc1d6c5b03c98e 中修复,需要将LeviLamina升级到新版本才能解决此问题,稍后会发新版