fix null pointer preventing the entity schema from generating (#1142)

This commit is contained in:
Julian Krings 2025-01-15 11:30:55 +01:00 committed by GitHub
parent d4986f42a6
commit 20ad4657a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,6 +26,7 @@ import org.bukkit.plugin.Plugin;
import javax.annotation.Nullable;
import java.util.Collection;
import java.util.List;
public class MythicMobsLink {
@ -54,6 +55,6 @@ public class MythicMobsLink {
}
public Collection<String> getMythicMobTypes() {
return isEnabled() ? MythicBukkit.inst().getMobManager().getMobNames() : null;
return isEnabled() ? MythicBukkit.inst().getMobManager().getMobNames() : List.of();
}
}