From dc49a5054a31d90727245ae5d67502237c4ec50e Mon Sep 17 00:00:00 2001 From: Oliver Lehmann Date: Fri, 26 Nov 2021 08:23:38 +0100 Subject: [PATCH] correction of baseID calculation formula to avoid "Coordinates do not exist" error --- GameEngine/Generator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameEngine/Generator.php b/GameEngine/Generator.php index 2b8ed1e8..dc2cc75b 100755 --- a/GameEngine/Generator.php +++ b/GameEngine/Generator.php @@ -118,7 +118,7 @@ class MyGenerator { public function getBaseID($x, $y){ - return ((WORLD_MAX - $y) * (WORLD_MAX * 2 + 1)) + (WORLD_MAX + $x + 1); + return ((WORLD_MAX - $y) * (WORLD_MAX * 2 + 1)) + (WORLD_MAX - $x + 1); } public function getMapCheck($wref){