mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Add SPAWNER_EGG spawn reason to allow for filtering. Adds BUKKIT-3000
This commit is contained in:
1 parent
c36b3da573
commit
a17ca07fe8
1 file changed
+1
-1
@@ -21,7 +21,7 @@ public abstract class EntityAgeable extends EntityCreature {
|
||||
if (entityageable != null) {
|
||||
entityageable.setAge(-24000);
|
||||
entityageable.setPositionRotation(this.locX, this.locY, this.locZ, 0.0F, 0.0F);
|
||||
this.world.addEntity(entityageable);
|
||||
this.world.addEntity(entityageable, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.SPAWNER_EGG); // CraftBukkit
|
||||
|
||||
// CraftBukkit start
|
||||
if (!entityhuman.abilities.canInstantlyBuild) {
|
||||
|
||||
Reference in new issue
Block a user