Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: 加载CoralFans插件后,导致js插件的"onAttackEntity"事件失效 #27

Open
Hurry1027 opened this issue Oct 19, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Hurry1027
Copy link

Hurry1027 commented Oct 19, 2024

Describe the bug

CoralFans为默认配置文件。
加载CoralFans插件后,导致js插件的"onAttackEntity"事件失效。
卸载CoralFans插件,js插件的"onAttackEntity"可以正常监听。

To Reproduce

LL0.13.5,LSE0.8.13

JS插件:

mc.listen("onAttackEntity",(pl, en)=>{
    logger.warn(`玩家攻击生物: `, en.type);
});

CoralFans为默认配置文件。
加载CoralFans插件后,无法监听到玩家攻击生物。
卸载CoralFans插件,可以正常监听到攻击生物。

Expected behavior

使CoralFans插件不再干扰js插件的"onAttackEntity"事件监听,其他事件是否会被影响未做测试。
另外建议将打印种子的默认配置改为false。

Screenshots

No response

Platform

Windows 10

BDS Version

1.21.3

LeviLamina Version

0.13.5

Version

2.0.0

Additional context

No response

@Hurry1027 Hurry1027 added the bug Something isn't working label Oct 19, 2024
@odorajbotoj
Copy link
Member

首先很抱歉,最近一阵子比较忙,没关注issue。

关于这个问题,我推测是因为这里hook了attack函数,导致lse无法进行hook。

我会在最近的更新推送中修复。感谢支持

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants