mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-24 21:46:11 +00:00
Update process.php
Update Croppers part for process Crop finder automation.
This commit is contained in:
+17
-17
@@ -207,26 +207,26 @@ class Process {
|
|||||||
/**
|
/**
|
||||||
* Generates map data and populates it with oasis.
|
* Generates map data and populates it with oasis.
|
||||||
*/
|
*/
|
||||||
function createWdata() {
|
function createWdata() {
|
||||||
global $database;
|
global $database;
|
||||||
|
|
||||||
include ("../GameEngine/config.php");
|
include ("../GameEngine/config.php");
|
||||||
include ("../GameEngine/Database.php");
|
include ("../GameEngine/Database.php");
|
||||||
include ("../GameEngine/Admin/database.php");
|
include ("../GameEngine/Admin/database.php");
|
||||||
|
|
||||||
// populate world data
|
// 1) Populate world data
|
||||||
$result = $database->populateWorldData();
|
$result = $database->populateWorldData();
|
||||||
if ($result === false) {
|
if ($result === false) {
|
||||||
header("Location: index.php?s=3&err=1");
|
header("Location: index.php?s=3&err=1");
|
||||||
exit;
|
exit;
|
||||||
} else if ($result === -1) {
|
} else if ($result === -1) {
|
||||||
header("Location: index.php?s=3&c=1");
|
header("Location: index.php?s=3&c=1");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
header("Location: index.php?s=4");
|
header("Location: index.php?s=3&startCroppers=1");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|||||||
Reference in New Issue
Block a user