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