From b7359f5fa93f531986c86b1ced20bb4584593b0a Mon Sep 17 00:00:00 2001 From: Jude Melton-Houghton Date: Mon, 5 Dec 2022 08:31:18 -0500 Subject: [PATCH] Update nodes in LBM loop --- src/serverenvironment.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/serverenvironment.cpp b/src/serverenvironment.cpp index aa6ba2f96..0099b4a25 100644 --- a/src/serverenvironment.cpp +++ b/src/serverenvironment.cpp @@ -282,6 +282,9 @@ void LBMManager::applyLBMs(ServerEnvironment *env, MapBlock *block, continue; for (auto lbmdef : *lbm_list) { 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 } } }