mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
fix: this should work but doesn't, so I'm reverting it back
This commit is contained in:
@@ -982,9 +982,8 @@ class Automation {
|
||||
}
|
||||
$q1 = "SELECT send, moveid, `to`, wood, clay, iron, crop, `from` FROM ".TB_PREFIX."movement WHERE proc = 0 and sort_type = 2 and endtime < $time";
|
||||
$dataarray1 = $database->query_return($q1);
|
||||
$completedIDs = [];
|
||||
foreach($dataarray1 as $data1) {
|
||||
$completedIDs[] = $data1['moveid'];
|
||||
$database->setMovementProc($data1['moveid']);
|
||||
if($data1['send'] > 1){
|
||||
if (!isset($villageOwners[$data1['to']])) {
|
||||
$villageOwners[$data1['to']] = $database->getVillageField($data1['to'],"owner");
|
||||
@@ -998,9 +997,6 @@ class Automation {
|
||||
}
|
||||
}
|
||||
|
||||
// updated processed records
|
||||
$database->setMovementProc(implode(', ', $completedIDs));
|
||||
|
||||
if(file_exists("GameEngine/Prevention/market.txt")) {
|
||||
unlink("GameEngine/Prevention/market.txt");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user