mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-01 00:10:40 +01:00
Check for object existing before loading
This commit is contained in:
parent
e87cd7e4d2
commit
11259415cc
@ -301,7 +301,7 @@ public class IslandCache {
|
||||
* @since 2.4.0
|
||||
*/
|
||||
public Island loadIsland(String uniqueId) {
|
||||
return handler.loadObject(uniqueId);
|
||||
return handler.objectExists(uniqueId) ? handler.loadObject(uniqueId) : null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user