13
0
geforkt von Mirrors/Paper
Paper/paper-server/nms-patches/TileEntityBeehive.patch
CraftBukkit/Spigot 32c57acf3d SPIGOT-5464: Add BEEHIVE SpawnReason for when a bee leaves a beehive
By: ShaneBee <shanebolenback@me.com>
2019-12-18 02:07:49 -08:00

12 Zeilen
715 B
Diff

--- a/net/minecraft/server/TileEntityBeehive.java
+++ b/net/minecraft/server/TileEntityBeehive.java
@@ -194,7 +194,7 @@
BlockPosition blockposition2 = this.getPosition();
this.world.playSound((EntityHuman) null, (double) blockposition2.getX(), (double) blockposition2.getY(), (double) blockposition2.getZ(), SoundEffects.BLOCK_BEEHIVE_EXIT, SoundCategory.BLOCKS, 1.0F, 1.0F);
- return this.world.addEntity(entity);
+ return this.world.addEntity(entity, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.BEEHIVE); // CraftBukkit
}
} else {
return false;