LegacyScriptEngine icon indicating copy to clipboard operation
LegacyScriptEngine copied to clipboard

[Bug]: 监听onRedStoneUpdate事件导致玩家无法进服

Open minimouse0 opened this issue 7 months ago • 1 comments

Describe the bug

如果服务器内有插件监听到了onRedStoneUpdate事件,比如iland,那么玩家将一直卡在进服界面无法进服,同时服务端日志只有Player connected:而不出现Player Spawned:。此时再尝试关服,服务器中将出现死循环(假死),占用满一个CPU核心

To Reproduce

服务器安装lse和任意会监听onRedStoneUpdate的lse插件,存档中摆放任意红石高频装置使其保持开启,然后从高频旁边下线,再重新进服 一个足以触发此问题的nodejs插件代码如下:

mc.listen("onRedStoneUpdate",()=>{});

Expected behavior

在一台性能足够的服务器上,存档不大、插件也不多时,玩家连接服务器后应该在几秒至十几秒内就能成功进入服务器正常游戏

Screenshots

No response

Platform

Windows 11 23H2

BDS Version

1.21.70

LeviLamina Version

#4787

LegacyScriptEngine Version

#1069

Additional context

No response

minimouse0 avatar May 15 '25 11:05 minimouse0

无法在 LeviLamina 1.2.0-rc.2 安装了 498f267d8f3a3c525b5f7af497d8c040386f6eb6 QuickJs和Lua引擎的环境下复现

ShrBox avatar May 20 '25 06:05 ShrBox