13
0

Merge pull request 'Fix Region Detection' (#32) from fix_region_detection into master
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Reviewed-on: #32
Reviewed-by: YoyoNow <jwsteam@nidido.de>
Reviewed-by: Lixfel <lixfel@steamwar.de>
Dieser Commit ist enthalten in:
Lixfel 2023-04-09 15:34:49 +02:00
Commit c9327c9b62

Datei anzeigen

@ -153,10 +153,10 @@ public class BoatRace implements EventListener, Listener {
double y1 = Math.min(loc1.getY(), loc2.getY()); double y1 = Math.min(loc1.getY(), loc2.getY());
double z1 = Math.min(loc1.getZ(), loc2.getZ()); double z1 = Math.min(loc1.getZ(), loc2.getZ());
double x2 = Math.max(loc1.getX(), loc2.getX()); double x2 = Math.max(loc1.getX(), loc2.getX()) + 1;
double y2 = Math.max(loc1.getY(), loc2.getY()); double y2 = Math.max(loc1.getY(), loc2.getY()) + 1;
double z2 = Math.max(loc1.getZ(), loc2.getZ()); double z2 = Math.max(loc1.getZ(), loc2.getZ()) + 1;
return p.getLocation().getX() >= x1 && p.getLocation().getY() >= y1 && p.getLocation().getZ() >= z1 && p.getLocation().getX() <= x2 && p.getLocation().getY() <= y2 && p.getLocation().getZ() <= z2; return p.getLocation().getX() >= x1 && p.getLocation().getY() >= y1 && p.getLocation().getZ() >= z1 && p.getLocation().getX() < x2 && p.getLocation().getY() < y2 && p.getLocation().getZ() < z2;
} }
} }