Mark cocoon-spawned entities as un-despawnable

This commit is contained in:
Vincent Lee committed 2020-02-10 13:17:05 -06:00
1 parent bb68017141
commit 065d189c5e
1 file changed
+1
@@ -123,6 +123,7 @@ public class TileCocoon extends TileMod implements ITickableTileEntity{
if(entity instanceof AgeableEntity)
((AgeableEntity) entity).setGrowingAge(-24000);
entity.onInitialSpawn(world, world.getDifficultyForLocation(getPos()), SpawnReason.EVENT, null, null);
entity.enablePersistence();
world.addEntity(entity);
entity.spawnExplosionParticle();
}