Files
CatServer/patches/net/minecraftforge/event/entity/living/LivingSpawnEvent.java.patch
2018-07-15 13:26:53 +08:00

19 lines
628 B
Diff

--- ../src-base/minecraft/net/minecraftforge/event/entity/living/LivingSpawnEvent.java
+++ ../src-work/minecraft/net/minecraftforge/event/entity/living/LivingSpawnEvent.java
@@ -75,6 +75,7 @@
public CheckSpawn(EntityLiving entity, World world, float x, float y, float z)
{
super(entity, world, x, y, z);
+ entity.spawnReason = "natural";
}
}
@@ -97,6 +98,7 @@
public SpecialSpawn(EntityLiving entity, World world, float x, float y, float z)
{
super(entity, world, x, y, z);
+ entity.spawnReason = "spawner";
}
}