Skip to content

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

Open
@minimouse0

Description

@minimouse0

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

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