Skip to content

Commit 71e06bb

Browse files
committed
fix: add thread check for nnLiquidFlow for server
1 parent 9cbc480 commit 71e06bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lse/events/BlockEvents.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ LL_TYPE_INSTANCE_HOOK(
445445
uchar flowFromDirection
446446
) {
447447
IF_LISTENED(EVENT_TYPES::onLiquidFlow) {
448-
if (checkClientIsServerThread() && liquidBlockCanSpreadTo(*this, region, pos, flowFromPos, flowFromDirection)) {
448+
if (api::thread::isServerThread() && liquidBlockCanSpreadTo(*this, region, pos, flowFromPos, flowFromDirection)) {
449449
if (!CallEvent(
450450
EVENT_TYPES::onLiquidFlow,
451451
region.isInstaticking(pos) ? Local<Value>() : BlockClass::newBlock(pos, region.getDimensionId()),

0 commit comments

Comments
 (0)