Cleanup old compat

This commit is contained in:
Daniel Mills
2021-07-20 11:33:02 -04:00
parent 326bddad2a
commit 18195b778a
16 changed files with 61 additions and 710 deletions

View File

@@ -279,7 +279,7 @@ public class IrisEntity extends IrisRegistrant {
}, 1);
}
if (Iris.awareEntities && e instanceof Mob) {
if (e instanceof Mob) {
Mob m = (Mob) e;
m.setAware(isAware());
}

View File

@@ -142,10 +142,15 @@ public class IrisLoot {
i.apply(rng, m);
}
if (Iris.customModels) {
try
{
m.setCustomModelData(getCustomModel());
}
catch(Throwable e)
{
Iris.reportError(e);
}
m.setLocalizedName(C.translateAlternateColorCodes('&', displayName));
m.setDisplayName(C.translateAlternateColorCodes('&', displayName));
m.setUnbreakable(isUnbreakable());
@@ -226,10 +231,16 @@ public class IrisLoot {
i.apply(rng, m);
}
if (Iris.customModels) {
try
{
m.setCustomModelData(getCustomModel());
}
catch(Throwable e)
{
Iris.reportError(e);
}
m.setLocalizedName(C.translateAlternateColorCodes('&', displayName));
m.setDisplayName(C.translateAlternateColorCodes('&', displayName));
m.setUnbreakable(isUnbreakable());