Sitelet https://github.com/LiteLDev/LegacyScriptEngine/issues/312
Skip to content

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

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

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions