LegacyScriptEngine icon indicating copy to clipboard operation
LegacyScriptEngine copied to clipboard

[Bug]: onRedStoneUpdate 参数 isActive 异常

Open zmsgsb opened this issue 5 months ago • 0 comments

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

zmsgsb avatar Jul 18 '25 03:07 zmsgsb