Skip to content

Commit

Permalink
Modify spawn protection to match default.
Browse files Browse the repository at this point in the history
Before spawn protection in ToolBelt was expanded by one block beyond the
default.
  • Loading branch information
Peter200lx committed Feb 25, 2013
1 parent 61d67a3 commit c594dba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ protected boolean spawnBuild(Block target, Player subject) {
final int distanceFromSpawn = (int) Math.max(
Math.abs(target.getX() - spawn.getX()),
Math.abs(target.getZ() - spawn.getZ()));
if (distanceFromSpawn > spawnSize) {
if (distanceFromSpawn >= spawnSize) {
return true;
} else {
uPrint(PrintEnum.DEBUG, subject, ChatColor.DARK_PURPLE
Expand Down

0 comments on commit c594dba

Please sign in to comment.