Corrected since reference, removed debug.

This commit is contained in:
tastybento 2021-04-24 09:02:47 -07:00
parent 33b49a2349
commit b1ab2ecece
2 changed files with 1 additions and 2 deletions

View File

@ -250,7 +250,7 @@ public class Settings implements ConfigObject {
@ConfigComment("Minimum nether portal search radius. This should not be less that 8 otherwise duplicate")
@ConfigComment("portals can occur")
@ConfigEntry(path = "island.portal-search-radius", since = "1.17.0")
@ConfigEntry(path = "island.portal-search-radius", since = "1.16.2")
private int minPortalSearchRadius = 8;
@ConfigComment("Number of blocks to paste per tick when pasting blueprints.")

View File

@ -425,7 +425,6 @@ public class PortalTeleportationListener implements Listener {
int x = Math.abs(i.getProtectionCenter().getBlockX() - e.getFrom().getBlockX());
int z = Math.abs(i.getProtectionCenter().getBlockZ() - e.getFrom().getBlockZ());
int diff = Math.max(plugin.getSettings().getMinPortalSearchRadius(), i.getProtectionRange() - Math.max(x, z));
BentoBox.getInstance().logDebug("Search radius = " + diff);
if (diff > 0 && diff < 128) {
e.setSearchRadius(diff);
}