mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-22 08:01:24 +01:00
Corrected since reference, removed debug.
This commit is contained in:
parent
33b49a2349
commit
b1ab2ecece
@ -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.")
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user