SPIGOT-7200: CreatureSpawnEvent is called with incorrect SpawnReason when using spawn eggs
This commit is contained in:
parent
eecb4c0dc0
commit
4fa7e1c31d
@ -45,6 +45,15 @@
|
||||
|
||||
if (itemstack != null) {
|
||||
nbttagcompound = itemstack.getTag();
|
||||
@@ -342,7 +350,7 @@
|
||||
nbttagcompound = null;
|
||||
}
|
||||
|
||||
- return this.spawn(worldserver, nbttagcompound, consumer, blockposition, enummobspawn, flag, flag1);
|
||||
+ return this.spawn(worldserver, nbttagcompound, consumer, blockposition, enummobspawn, flag, flag1, spawnReason); // CraftBukkit
|
||||
}
|
||||
|
||||
public static <T extends Entity> Consumer<T> createDefaultStackConfig(WorldServer worldserver, ItemStack itemstack, @Nullable EntityHuman entityhuman) {
|
||||
@@ -363,21 +371,37 @@
|
||||
NBTTagCompound nbttagcompound = itemstack.getTag();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user