mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-02-20 13:41:26 +01:00
Some Formatting.
This commit is contained in:
parent
e09d024101
commit
aa91a39eea
@ -97,7 +97,9 @@ public class MCAccessCBDev implements MCAccess{
|
||||
@Override
|
||||
public AlmostBoolean isIllegalBounds(final Player player) {
|
||||
final EntityPlayer entityPlayer = ((CraftPlayer) player).getHandle();
|
||||
if (entityPlayer.dead) return AlmostBoolean.NO;
|
||||
if (entityPlayer.dead) {
|
||||
return AlmostBoolean.NO;
|
||||
}
|
||||
// TODO: Does this need a method call for the "real" box? Might be no problem during moving events, though.
|
||||
final AxisAlignedBB box = entityPlayer.boundingBox;
|
||||
if (!entityPlayer.isSleeping()) {
|
||||
|
@ -836,7 +836,9 @@ public class PlayerLocation {
|
||||
*/
|
||||
public boolean isIllegal() {
|
||||
final AlmostBoolean spec = mcAccess.isIllegalBounds(player);
|
||||
if (spec != AlmostBoolean.MAYBE) return spec.decide();
|
||||
if (spec != AlmostBoolean.MAYBE) {
|
||||
return spec.decide();
|
||||
}
|
||||
else if (Math.abs(minX) > 3.2E7D || Math.abs(maxX) > 3.2E7D || Math.abs(minY) > 3.2E7D || Math.abs(maxY) > 3.2E7D || Math.abs(minZ) > 3.2E7D || Math.abs(maxZ) > 3.2E7D) return true;
|
||||
// if (Math.abs(box.a) > 3.2E7D || Math.abs(box.b) > 3.2E7D || Math.abs(box.c) > 3.2E7D || Math.abs(box.d) > 3.2E7D || Math.abs(box.e) > 3.2E7D || Math.abs(box.f) > 3.2E7D) return true;
|
||||
else return false;
|
||||
|
Loading…
Reference in New Issue
Block a user