9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-25 10:09:14 +00:00
This commit is contained in:
Daniel Mills
2021-08-04 02:24:11 -04:00
parent 5eddfaed98
commit 75f3073cbf
2 changed files with 7 additions and 2 deletions

View File

@@ -142,6 +142,12 @@ public class IrisEntity extends IrisRegistrant {
public Entity spawn(Engine gen, Location at, RNG rng) {
Entity e = doSpawn(at);
if(e == null)
{
return null;
}
e.setCustomName(getCustomName() != null ? C.translateAlternateColorCodes('&', getCustomName()) : null);
e.setCustomNameVisible(isCustomNameVisible());
e.setGlowing(isGlowing());