formatting

This commit is contained in:
Flemmli97 2021-06-09 02:59:09 +02:00
parent 5922b77a42
commit 8086c96558
2 changed files with 2 additions and 5 deletions

View File

@ -26,8 +26,6 @@ public class GlobalClaim implements IPermissionContainer {
player.sendMessage(PermHelper.simpleColoredText(ConfigHandler.lang.noPermissionSimple, Formatting.DARK_RED), true);
return false;
}
if (perm == PermissionRegistry.MOBSPAWN)
return false;
return true;
return perm != PermissionRegistry.MOBSPAWN;
}
}

View File

@ -255,8 +255,7 @@ public class PlayerClaimData {
((IPlayerClaimImpl) this.player).getCurrentClaim().getDimensions(),
TeleportUtils.roundedBlockPos(this.player.getPos()).mutableCopy(), (claim, nPos) -> false);
this.player.teleport(tp.getX(), tp.getY(), tp.getZ());
}
if (this.player.getPos().squaredDistanceTo(this.trappedPos) > 0.15) {
} else if (this.player.getPos().squaredDistanceTo(this.trappedPos) > 0.15) {
this.trappedTick = -1;
this.trappedPos = null;
this.player.sendMessage(PermHelper.simpleColoredText(String.format(ConfigHandler.lang.trappedMove), Formatting.RED), false);