Skip to content

[Bug]: onRedStoneUpdate 参数 isActive 异常 #312

@zmsgsb

Description

@zmsgsb

Describe the bug

Image Image

onRedStoneUpdate 参数 isActive 异常,有时 isActive 始终为 false 有时 isActive 第一次是 true 之后始终都是false

To Reproduce

mc.listen("onRedStoneUpdate", (block, level, isActive) => {
    // 调试日志:显示所有红石更新
    const pos = block.pos;
    logger.warn(`红石更新: ${block.type} at (${pos.x},${pos.y},${pos.z}) - 激活:${isActive}, 等级:${level}`);
});

Expected behavior

激活时 isActive 为 true 熄灭时 isActive 为 false

Screenshots

No response

Platform

win10

BDS Version

1.21.93

LeviLamina Version

1.4.1

LegacyScriptEngine Version

0.13.0

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