Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
Made clearRegion better
Browse files Browse the repository at this point in the history
  • Loading branch information
bziemons committed Dec 23, 2013
1 parent 4ebdbb8 commit a988984
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,9 @@ public void setRegionOccupied(Region region, boolean isOccupied) {

@Override
public void clearRegion(Region region) {
if (isRegionOccupied(region)) {
setRegionOccupied(region, false);
setRegionMembers(region, new OfflinePlayer[] {});
setRegionOwners(region, new OfflinePlayer[] {});
}
setRegionOccupied(region, false);
setRegionMembers(region, new OfflinePlayer[] {});
setRegionOwners(region, new OfflinePlayer[] {});
}

@Override
Expand Down Expand Up @@ -267,7 +265,7 @@ public Sign makeSign(Player player, Block block, HashMap<String, String> inputMa

region.setOption("price", price);
region.setOption("account", account);
setRegionOccupied(region, false);
clearRegion(region);

return region.addBlockAsSign(block);
}
Expand Down

0 comments on commit a988984

Please sign in to comment.