From da56dfcb5d491f7ac769fbaeca78b25490205354 Mon Sep 17 00:00:00 2001 From: Catalin Novgorodschi <1140613+Shadowss@users.noreply.github.com> Date: Thu, 2 Apr 2026 10:12:42 +0300 Subject: [PATCH] Issue with account login #54 Added a fix on displaying resources when refreshing. --- GameEngine/Village.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameEngine/Village.php b/GameEngine/Village.php index 323096a4..be4b6059 100755 --- a/GameEngine/Village.php +++ b/GameEngine/Village.php @@ -168,7 +168,7 @@ class Village { $nclay = min(($this->production['clay'] / 3600) * $timepast, $this->maxstore); $niron = min(($this->production['iron'] / 3600) * $timepast, $this->maxstore); $ncrop = min(($this->production['crop'] / 3600) * $timepast, $this->maxcrop); - + call_user_func(get_class($database).'::clearVillageCache'); $database->modifyResource($this->wid, $nwood, $nclay, $niron, $ncrop, 1); $database->updateVillage($this->wid); $this->LoadTown(true);