Skip to content

[Bug]: onOpenContainerScreen 事件无法拦截 #257

Open
@reallyGoodBaker

Description

@reallyGoodBaker

Describe the bug

即使在回调函数返回false, 背包也依然会打开 (使用场景是检测打开背包键)

To Reproduce

mc.listen('onOpenContainerScreen', pl => {
    return false
})

依然可以打开背包

Expected behavior

背包不应该打开

Screenshots

No response

Platform

Windows 10

BDS Version

1.21.60

LeviLamina Version

1.1.1

LegacyScriptEngine Version

0.10.2

Additional context

No response

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