mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-29 06:37:15 +00:00
Issue with account login #54
Added a fix on displaying resources when refreshing.
This commit is contained in:
@@ -168,7 +168,7 @@ class Village {
|
|||||||
$nclay = min(($this->production['clay'] / 3600) * $timepast, $this->maxstore);
|
$nclay = min(($this->production['clay'] / 3600) * $timepast, $this->maxstore);
|
||||||
$niron = min(($this->production['iron'] / 3600) * $timepast, $this->maxstore);
|
$niron = min(($this->production['iron'] / 3600) * $timepast, $this->maxstore);
|
||||||
$ncrop = min(($this->production['crop'] / 3600) * $timepast, $this->maxcrop);
|
$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->modifyResource($this->wid, $nwood, $nclay, $niron, $ncrop, 1);
|
||||||
$database->updateVillage($this->wid);
|
$database->updateVillage($this->wid);
|
||||||
$this->LoadTown(true);
|
$this->LoadTown(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user