mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-15 08:28:10 +02:00
Some Formatting.
This commit is contained in:
parent
e09d024101
commit
aa91a39eea
@ -97,7 +97,9 @@ public class MCAccessCBDev implements MCAccess{
|
|||||||
@Override
|
@Override
|
||||||
public AlmostBoolean isIllegalBounds(final Player player) {
|
public AlmostBoolean isIllegalBounds(final Player player) {
|
||||||
final EntityPlayer entityPlayer = ((CraftPlayer) player).getHandle();
|
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.
|
// TODO: Does this need a method call for the "real" box? Might be no problem during moving events, though.
|
||||||
final AxisAlignedBB box = entityPlayer.boundingBox;
|
final AxisAlignedBB box = entityPlayer.boundingBox;
|
||||||
if (!entityPlayer.isSleeping()) {
|
if (!entityPlayer.isSleeping()) {
|
||||||
|
@ -836,7 +836,9 @@ public class PlayerLocation {
|
|||||||
*/
|
*/
|
||||||
public boolean isIllegal() {
|
public boolean isIllegal() {
|
||||||
final AlmostBoolean spec = mcAccess.isIllegalBounds(player);
|
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;
|
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;
|
// 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;
|
else return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user