-
Notifications
You must be signed in to change notification settings - Fork 13
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
监听 onBlockChanged
onRedStoneUpdate
onFireSpread
onPistonTryPush
onPistonPush
onFarmLandDecay
等事件时出错,这些事件都是方块相关事件。
具体报错内容:
19:37:40.381 ERROR [legacy-script-engine-quickjs] Event Callback Failed!
19:37:40.381 ERROR [legacy-script-engine-quickjs] Uncaught Exception Detected!
19:37:40.381 ERROR [legacy-script-engine-quickjs] In Event: onBlockChanged
To Reproduce
服务端运行后,依次执行以下命令:
jsdebug const events = ['onBlockChanged', 'onRedStoneUpdate', 'onFireSpread', 'onPistonTryPush', 'onPistonPush', 'onFarmLandDecay'];
jsdebug for (let i in events) mc.listen(events[i], () => {});
然后进入服务器触发相关事件即可。
Expected behavior
可以正常监听方块相关事件。
Screenshots
No response
Platform
Windows 11 专业版
BDS Version
1.20.72.01
LeviLamina Version
0.10.1
LegacyScriptEngine Version
0.5.1
Additional context
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working