mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 19:05:16 +00:00
Mark cocoon-spawned entities as un-despawnable
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user