mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-29 20:19:06 +00:00
Entity Fallback
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user