mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-21 05:44:33 +00:00
Add SPAWNER_EGG spawn reason to allow for filtering. Adds BUKKIT-3000
This commit is contained in:
parent
c36b3da573
commit
a17ca07fe8
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ public abstract class EntityAgeable extends EntityCreature {
|
||||||
if (entityageable != null) {
|
if (entityageable != null) {
|
||||||
entityageable.setAge(-24000);
|
entityageable.setAge(-24000);
|
||||||
entityageable.setPositionRotation(this.locX, this.locY, this.locZ, 0.0F, 0.0F);
|
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
|
// CraftBukkit start
|
||||||
if (!entityhuman.abilities.canInstantlyBuild) {
|
if (!entityhuman.abilities.canInstantlyBuild) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue