Issue with account login #54

Added a fix on displaying resources when refreshing.
This commit is contained in:
Catalin Novgorodschi
2026-04-02 10:12:42 +03:00
parent ebc77f7fbc
commit da56dfcb5d
+1 -1
View File
@@ -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);