From 613a4c58a30983bf7d14c583b1def0121d0c8507 Mon Sep 17 00:00:00 2001 From: FinnHornhoover Date: Sat, 19 Aug 2023 17:14:28 +0300 Subject: [PATCH] fixed irecall instance breaking infected zone pods --- src/PlayerManager.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/PlayerManager.cpp b/src/PlayerManager.cpp index 4933cdf..36ebd0b 100644 --- a/src/PlayerManager.cpp +++ b/src/PlayerManager.cpp @@ -86,7 +86,10 @@ void PlayerManager::updatePlayerPosition(CNSocket* sock, int X, int Y, int Z, ui plr->x = X; plr->y = Y; plr->z = Z; - plr->instanceID = I; + if (plr->instanceID != I) { + plr->instanceID = I; + plr->recallInstance = INSTANCE_OVERWORLD; + } if (oldChunk == newChunk) return; // didn't change chunks Chunking::updateEntityChunk({sock}, oldChunk, newChunk);