diff --git a/Templates/Build/17.tpl b/Templates/Build/17.tpl index cf71a871..68b9fb0e 100644 --- a/Templates/Build/17.tpl +++ b/Templates/Build/17.tpl @@ -14,7 +14,7 @@ var carry = maxcarry; ?>; //--> getVilWref($_POST['x'],$_POST['y']); $checkexist = $database->checkVilExist($getwref); @@ -23,7 +23,7 @@ else if($_POST['dname']!=""){ $getwref = $database->getVillageByName($_POST['dname']); $checkexist = $database->checkVilExist($getwref); } -if(isset($_POST['ft'])=='check' && $allres!=0 && ($_POST['x']!="" && $_POST['y']!="" or $_POST['dname']!="") && $checkexist){ +if(isset($_POST['ft'])=='check' && $allres!=0 && $allres <= $market->maxcarry && ($_POST['x']!="" && $_POST['y']!="" or $_POST['dname']!="") && $checkexist){ ?>