mirror of
https://github.com/Phoenix616/RandomTeleport.git
synced 2024-11-22 02:25:38 +01:00
Fix NPE when no border is set in WorldBorder
This commit is contained in:
parent
6098947fbb
commit
3ecf194913
@ -47,7 +47,7 @@ public class WorldBorderHook implements WorldborderHook {
|
||||
@Override
|
||||
public boolean isInsideBorder(Location location) {
|
||||
BorderData data = plugin.getWorldBorder(location.getWorld().getName());
|
||||
return data.insideBorder(location);
|
||||
return data == null || data.insideBorder(location);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user