Skip to content

Commit

Permalink
Remove debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Jan 21, 2025
1 parent 4ff0e8a commit caf32da
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,10 @@ public boolean checkIfSafe(@Nullable World world, @NonNull Material ground, @Non
// Ground must be solid, space 1 and 2 must not be solid
if (world == null || !ground.isSolid() || (space1.isSolid() && !Tag.SIGNS.isTagged(space1))
|| (space2.isSolid() && !Tag.SIGNS.isTagged(space2))) {
BentoBox.getInstance().logDebug("Ground must be solid, space 1 and 2 must not be solid");
return false;
}
// Cannot be submerged or water cannot be dangerous
if ((space1.equals(Material.WATER) || space2.equals(Material.WATER)) && plugin.getIWM().isWaterNotSafe(world)) {
BentoBox.getInstance().logDebug("water not safe");
return false;
}
// Unsafe
Expand All @@ -218,7 +216,6 @@ public boolean checkIfSafe(@Nullable World world, @NonNull Material ground, @Non
|| Tag.CAMPFIRES.isTagged(ground) || Tag.FIRE.isTagged(ground) || Tag.FIRE.isTagged(space1)
|| space1.equals(Material.END_PORTAL) || space2.equals(Material.END_PORTAL)
|| space1.equals(Material.END_GATEWAY) || space2.equals(Material.END_GATEWAY)) {
BentoBox.getInstance().logDebug("Unsafe");
return false;
}
// Known unsafe blocks
Expand Down

0 comments on commit caf32da

Please sign in to comment.