Skip to content

[Bug]: 对象未定义时操作玩家绑定数据会崩服 #299

@15551057621

Description

@15551057621

Describe the bug

对象未定义时操作玩家绑定数据会崩服

To Reproduce

mc.listen("onSetArmor", (pl) => {
pl.setExtraData("test",1)
})

Expected behavior

会在控制台抛出错误,但并不会崩服

Screenshots

Image

Platform

Windows 10

BDS Version

1.21.80

LeviLamina Version

1.3.3

LegacyScriptEngine Version

0.12.0

Additional context

这个是导致崩溃的插件
如果要复现崩服,请把41行注释掉

QYServer.js.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions