LiteLDev / LegacyScriptEngine

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

[Bug]: 获取离线玩家 NBT 导致崩服 #94

Closed TRDSCSH closed 7 months ago

TRDSCSH commented 7 months ago

Describe the bug

通过 mc.getPlayerNbt(uuid) 获取离线玩家 NBT 时崩服

To Reproduce

在服务端执行以下命令即可:

jsdebug mc.getPlayerNbt(data.name2uuid('<playerName>'));

需要将命令中的 <playerName> 替换为离线玩家的玩家名。

Expected behavior

正常获取离线玩家 NBT

Screenshots

No response

Platform

Windows 11 专业版

BDS Version

1.20.72.01

LeviLamina Version

0.10.5

LegacyScriptEngine Version

0.5.3

Additional context

No response

ShrBox commented 7 months ago

uuid和xuid是两回事(

TRDSCSH commented 7 months ago

uuid和xuid是两回事(

woc,我没注意到,可能打字手滑了(

经过测试,当参数是离线玩家的 uuid 时会崩服

ShrBox commented 7 months ago

已经在 31e170673daab88d396ac9e88929a5d8b53ea03d 中修复