Dev cmd updated

This commit is contained in:
2023-10-15 13:42:28 -04:00
parent d414c19904
commit 11664a9218
2 changed files with 22 additions and 19 deletions
+4 -6
View File
@@ -291,14 +291,12 @@ public enum ZoneManager {
public static Vector2f worldToZoneOffset(Vector3fImmutable worldLoc,
Zone zone) {
Vector2f localCoords;
Vector2f zoneOrigin;
Vector2f zoneLoc;
zoneOrigin = new Vector2f(zone.getLoc().x, zone.getLoc().z);
localCoords = new Vector2f(worldLoc.x, worldLoc.z);
localCoords = localCoords.subtract(zoneOrigin);
zoneLoc = new Vector2f(worldLoc.x, worldLoc.z).subtract(zone.getLoc().x, zone.getLoc().z);
zoneLoc.y *= -1;
return localCoords;
return zoneLoc;
}