fixed shrinking border warning
This commit is contained in:
@ -48,8 +48,8 @@ public class ShrinkingBorderListener extends ApplianceListener<ShrinkingBorder>
|
||||
private boolean isSave(Location playerLocation) {
|
||||
WorldBorder worldBorder = playerLocation.getWorld().getWorldBorder();
|
||||
Location relativeLocation = playerLocation.clone().subtract(worldBorder.getCenter());
|
||||
if(relativeLocation.getX() > this.getAppliance().getOption(ShrinkingBorderCommand.Argument.MINIMUM_SIZE)) return false;
|
||||
if(relativeLocation.getZ() > this.getAppliance().getOption(ShrinkingBorderCommand.Argument.MINIMUM_SIZE)) return false;
|
||||
if(Math.abs(relativeLocation.getX()) > this.getAppliance().getOption(ShrinkingBorderCommand.Argument.MINIMUM_SIZE)) return false;
|
||||
if(Math.abs(relativeLocation.getZ()) > this.getAppliance().getOption(ShrinkingBorderCommand.Argument.MINIMUM_SIZE)) return false;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user