Check for object existing before loading

This commit is contained in:
tastybento 2024-08-31 17:41:01 -07:00
parent e87cd7e4d2
commit 11259415cc

View File

@ -301,7 +301,7 @@ public class IslandCache {
* @since 2.4.0 * @since 2.4.0
*/ */
public Island loadIsland(String uniqueId) { public Island loadIsland(String uniqueId) {
return handler.loadObject(uniqueId); return handler.objectExists(uniqueId) ? handler.loadObject(uniqueId) : null;
} }
/** /**