Entity Fallback

This commit is contained in:
RePixelatedMC
2024-05-20 14:46:11 +02:00
parent 3146d61efe
commit 3ced6f3e9e
@@ -454,16 +454,17 @@ public class IrisEntity extends IrisRegistrant {
return ae.get(); return ae.get();
} }
if (isSpecialType()) { if (isSpecialType() && Iris.linkMythicMobs.isEnabled()) {
if (specialType.toLowerCase().startsWith("mythicmobs:")) { if (specialType.toLowerCase().startsWith("mythicmobs:")) {
return Iris.linkMythicMobs.spawnMob(specialType.substring(11), at); return Iris.linkMythicMobs.spawnMob(specialType.substring(11), at);
} else { } else {
Iris.warn("Invalid mob type to spawn: '" + specialType + "'!"); Iris.warn("Invalid mob type to spawn: '" + specialType + "'!");
return null; return null;
} }
} else {
Iris.warn("MythicMobs is not enabled, falling back to: " + type + "'!");
} }
return INMS.get().spawnEntity(at, getType(), getReason()); return INMS.get().spawnEntity(at, getType(), getReason());
} }