9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-29 20:19:06 +00:00

Entity Fallback

This commit is contained in:
RePixelatedMC
2024-05-20 14:46:11 +02:00
parent 3146d61efe
commit 3ced6f3e9e

View File

@@ -454,16 +454,17 @@ public class IrisEntity extends IrisRegistrant {
return ae.get();
}
if (isSpecialType()) {
if (isSpecialType() && Iris.linkMythicMobs.isEnabled()) {
if (specialType.toLowerCase().startsWith("mythicmobs:")) {
return Iris.linkMythicMobs.spawnMob(specialType.substring(11), at);
} else {
Iris.warn("Invalid mob type to spawn: '" + specialType + "'!");
return null;
}
} else {
Iris.warn("MythicMobs is not enabled, falling back to: " + type + "'!");
}
return INMS.get().spawnEntity(at, getType(), getReason());
}