mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-09 14:16:08 +00:00
General fixes
+Fixed a bug that didn't update the starvation correctly, when starvation data was updated (for example: troops in training, attacks completed, etc.)
This commit is contained in:
@@ -3889,7 +3889,7 @@ class Automation {
|
||||
$starv = $getVillage['starv'];
|
||||
if ($crop < $villageUpkeep){
|
||||
//Add starvation data
|
||||
$database->setVillageFields($wref, ['starv', 'starvupdate'], [$villageUpkeep, time()]);
|
||||
$database->setVillageFields($wref, ['starv'], [$villageUpkeep]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user