LegacyScriptEngine icon indicating copy to clipboard operation
LegacyScriptEngine copied to clipboard

[Bug]: mc.deletePlayerNbt(uuid) 删除玩家nbtAPI删除到了空指针导致崩服

Open Atrium4641 opened this issue 1 year ago • 3 comments

Describe the bug

https://github.com/GroupMountain/GMLIB-LegacyRemoteCallApi/issues/35

mc.deletePlayerNbt(uuid) 删除玩家nbtAPI删除到了空指针导致崩服

To Reproduce

https://github.com/GroupMountain/GMLIB-LegacyRemoteCallApi/issues/35

mc.deletePlayerNbt(uuid) 删除玩家nbtAPI删除到了空指针导致崩服

Expected behavior

不崩服

Screenshots

https://github.com/GroupMountain/GMLIB-LegacyRemoteCallApi/issues/35

mc.deletePlayerNbt(uuid) 删除玩家nbtAPI删除到了空指针导致崩服

Platform

Win10

Version

BDS1.21.3 LL0.13.5 LSE0.8.19

Additional context

https://github.com/GroupMountain/GMLIB-LegacyRemoteCallApi/issues/35

Atrium4641 avatar Oct 09 '24 03:10 Atrium4641

删除一个从未进过服的玩家的uuid的存档内的nbt,会导致崩服

Atrium4641 avatar Oct 09 '24 03:10 Atrium4641

image

Atrium4641 avatar Oct 09 '24 03:10 Atrium4641

crash.zip

Atrium4641 avatar Oct 09 '24 03:10 Atrium4641

无法复现,可能是其他地方的bug已经被修复了。如果确认此bug仍然存在,请重新打开此议题并提供具体复现方法

xiaoqch avatar May 09 '25 02:05 xiaoqch

无法复现,可能是其他地方的bug已经被修复了。如果确认此bug仍然存在,请重新打开此议题并提供具体复现方法

Image

确实是不崩了,但是始终都返回 true , 正常情况应该是删除存档中不存在的玩家uuid时返回false

jsdebug mc.deletePlayerNbt("uuid")

Image

zmsgsb avatar May 09 '25 07:05 zmsgsb

无法复现,可能是其他地方的bug已经被修复了。如果确认此bug仍然存在,请重新打开此议题并提供具体复现方法

Image

确实是不崩了,但是始终都返回 true , 正常情况应该是删除存档中不存在的玩家uuid时返回false

jsdebug mc.deletePlayerNbt("uuid")

Image

这个bug和无法删除的bug一起修了,等更新 https://github.com/LiteLDev/LegacyScriptEngine/commit/4d6348412c042a3ab3889ff041d9f9d3f42c9acf

xiaoqch avatar May 09 '25 10:05 xiaoqch