Remove the debugging messages and add a debugging variable.

This commit is contained in:
graywolf336
2013-12-28 13:37:18 -06:00
parent 81ec445deb
commit 17f627350b
2 changed files with 14 additions and 6 deletions

View File

@ -117,16 +117,13 @@ public class Cell {
public boolean hasChest() {
Chest c = getChest();
if(c != null) {
if(c.getInventory().getSize() >= 40) {
Bukkit.getLogger().info("The cell " + this.name + " has a chest.");
if(c.getInventory().getSize() >= 40)
return true;
}else {
else {
Bukkit.getLogger().severe("The cell " + this.name + " has chest that isn't a double chest, please fix.");
return false;
}
}else {
Bukkit.getLogger().info("The cell " + this.name + " doesn't have a chest.");
}else
return false;
}
}
}