Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: llse NBT.parseSNBT() 无法正常识别空的ByteArray(SNBT格式: [B;]) #1552

Closed
BlueBoxMirror opened this issue Jun 22, 2024 · 0 comments
Labels
bug Related to software malfunction

Comments

@BlueBoxMirror
Copy link

Describe the bug

llse NBT.parseSNBT() 无法正常识别空的ByteArray(SNBT格式: [B;])

To Reproduce

NBT.parseSNBT('{data:[B;]}');
或者输入有颜色无渐变的烟花的item.getNBT().toSNBT() 因为对应的SNBT中存在 [B;]
均输出 null

Expected behavior

NBT.parseSNBT()在处理空的ByteArray的SNBT时应正确输出相应的NBT

Screenshots

image

Platform

Windows 11

BDS Version

1.20.81.01

LeviLamina Version

0.12.3

LegacyScriptEngine Version

0.7.11

Additional context

No response

@BlueBoxMirror BlueBoxMirror added the bug Related to software malfunction label Jun 22, 2024
@OEOTYAN OEOTYAN transferred this issue from LiteLDev/LegacyScriptEngine Jun 22, 2024
OEOTYAN added a commit that referenced this issue Jun 23, 2024
@OEOTYAN OEOTYAN closed this as completed Jun 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Related to software malfunction
Development

No branches or pull requests

2 participants