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]: 安装插件后所有维度的火焰蔓延事件被拦截 #22

Closed
dlcnx opened this issue Feb 8, 2025 · 0 comments
Closed

[Bug]: 安装插件后所有维度的火焰蔓延事件被拦截 #22

dlcnx opened this issue Feb 8, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@dlcnx
Copy link

dlcnx commented Feb 8, 2025

Describe the bug

安装插件后,所有维度无法使用打火石,岩浆无法点燃木板。
推测与这部分代码有关,可能缺少了对事件发生时维度的判断(?

mFireSpreadEvent = bus->emplaceListener<ll::event::FireSpreadEvent>([db](ll::event::FireSpreadEvent& ev) {
auto const& pos = ev.pos();
auto pps = PlotPos(pos);
auto const meta = db->getPlot(pps.getPlotID());
if (meta) {
if (pps.isValid() && meta->getPermissionTableConst().allowFireSpread) return true;
}
ev.cancel();
return true;
});

To Reproduce

安装插件,在服务器主世界使用打火石

Expected behavior

不拦截其他维度的火焰蔓延事件

Screenshots

No response

Platform

No response

BDS Version

No response

LeviLamina Version

No response

Version

No response

Additional context

No response

@dlcnx dlcnx added the bug Something isn't working label Feb 8, 2025
engsr6982 added a commit that referenced this issue Feb 9, 2025
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

1 participant