From 9e13071fe1c72f210e89b52065e11af84388bc5a Mon Sep 17 00:00:00 2001 From: Catalin Novgorodschi <1140613+Shadowss@users.noreply.github.com> Date: Tue, 8 Oct 2024 15:22:32 +0300 Subject: [PATCH] Update Generator.php --- GameEngine/Generator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameEngine/Generator.php b/GameEngine/Generator.php index b47d08f7..ee667053 100755 --- a/GameEngine/Generator.php +++ b/GameEngine/Generator.php @@ -120,7 +120,7 @@ class MyGenerator { public function getBaseID($x, $y){ # broken -> return ((WORLD_MAX - $y) * (WORLD_MAX * 2 + 1)) + (WORLD_MAX + $x + 1); # OK -> return ((WORLD_MAX - $y) * (WORLD_MAX * 2 + 1)) + (WORLD_MAX - $x + 1); - 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){