Merge pull request 'Fix Region Detection' (#32) from fix_region_detection into master
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
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:
Commit
c9327c9b62
@ -153,10 +153,10 @@ public class BoatRace implements EventListener, Listener {
|
||||
double y1 = Math.min(loc1.getY(), loc2.getY());
|
||||
double z1 = Math.min(loc1.getZ(), loc2.getZ());
|
||||
|
||||
double x2 = Math.max(loc1.getX(), loc2.getX());
|
||||
double y2 = Math.max(loc1.getY(), loc2.getY());
|
||||
double z2 = Math.max(loc1.getZ(), loc2.getZ());
|
||||
double x2 = Math.max(loc1.getX(), loc2.getX()) + 1;
|
||||
double y2 = Math.max(loc1.getY(), loc2.getY()) + 1;
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren