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

@ -33,12 +33,11 @@ plugins {
} }
group 'com.volmit.iris' group 'com.volmit.iris'
version '1.6' version '1.6.1'
def apiVersion = '1.17' def apiVersion = '1.17'
def name = 'Iris' def name = 'Iris'
def main = 'com.volmit.iris.Iris' def main = 'com.volmit.iris.Iris'
// ADD YOURSELF AS A NEW LINE IF YOU WANT YOUR OWN BUILD TASK GENERATED // ADD YOURSELF AS A NEW LINE IF YOU WANT YOUR OWN BUILD TASK GENERATED
// ============================================================== // ==============================================================
registerCustomOutputTask('Cyberpwn', 'C://Users/cyberpwn/Documents/development/server/plugins'); registerCustomOutputTask('Cyberpwn', 'C://Users/cyberpwn/Documents/development/server/plugins');

View File

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