correction of baseID calculation formula to avoid "Coordinates do not exist" error

This commit is contained in:
Oliver Lehmann
2021-11-26 08:23:38 +01:00
parent 7b721958e5
commit dc49a5054a
+1 -1
View File
@@ -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){