mirror of
https://github.com/minetest/minetest.git
synced 2025-03-06 20:48:40 +01:00
Update nodes in LBM loop
This commit is contained in:
parent
cac1dca95b
commit
b7359f5fa9
1 changed files with 3 additions and 0 deletions
|
@ -282,6 +282,9 @@ void LBMManager::applyLBMs(ServerEnvironment *env, MapBlock *block,
|
||||||
continue;
|
continue;
|
||||||
for (auto lbmdef : *lbm_list) {
|
for (auto lbmdef : *lbm_list) {
|
||||||
lbmdef->trigger(env, pos + pos_of_block, n, dtime_s);
|
lbmdef->trigger(env, pos + pos_of_block, n, dtime_s);
|
||||||
|
n = block->getNodeNoCheck(pos);
|
||||||
|
if (n.getContent() != c)
|
||||||
|
break; // The node was changed and the LBMs no longer apply
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue