Commits vergleichen
Keine gemeinsamen Commits. "4d9aacfc3e6a62e04bb045708592f5f31eff3dd2" und "4e6755033aa47071ef77e58bff4a0b21f16932ef" haben vollständig unterschiedliche Historien.
4d9aacfc3e
...
4e6755033a
@ -29,16 +29,16 @@ public enum BundleFilter {
|
|||||||
|
|
||||||
LOOSE((TNTPoint a, TNTPoint b) -> {
|
LOOSE((TNTPoint a, TNTPoint b) -> {
|
||||||
if (a.isExplosion() != b.isExplosion()) return false;
|
if (a.isExplosion() != b.isExplosion()) return false;
|
||||||
if (a.getLocation().distanceSquared(b.getLocation()) > BundleFilter.pixelSizeSquared * 8) return false;
|
if (a.getLocation().distanceSquared(b.getLocation()) <= BundleFilter.pixelSizeSquared * 8) return false;
|
||||||
if (a.getVelocity().distanceSquared(b.getVelocity()) > BundleFilter.pixelSizeSquared * 8) return false;
|
if (a.getVelocity().distanceSquared(b.getVelocity()) <= BundleFilter.pixelSizeSquared * 8) return false;
|
||||||
return true;
|
return true;
|
||||||
}),
|
}),
|
||||||
|
|
||||||
DEFAULT((TNTPoint a, TNTPoint b) -> {
|
DEFAULT((TNTPoint a, TNTPoint b) -> {
|
||||||
if (a.isExplosion() != b.isExplosion()) return false;
|
if (a.isExplosion() != b.isExplosion()) return false;
|
||||||
if (a.getTicksSinceStart() != b.getTicksSinceStart()) return null;
|
if (a.getTicksSinceStart() != b.getTicksSinceStart()) return null;
|
||||||
if (a.getLocation().distanceSquared(b.getLocation()) > BundleFilter.pixelSizeSquared) return false;
|
if (a.getLocation().distanceSquared(b.getLocation()) <= BundleFilter.pixelSizeSquared) return false;
|
||||||
if (a.getVelocity().distanceSquared(b.getVelocity()) > BundleFilter.pixelSizeSquared) return false;
|
if (a.getVelocity().distanceSquared(b.getVelocity()) <= BundleFilter.pixelSizeSquared) return false;
|
||||||
return true;
|
return true;
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren