Skip to content

Commit

Permalink
Do not log bees leaving beehives
Browse files Browse the repository at this point in the history
  • Loading branch information
Brokkonaut committed Jan 16, 2021
1 parent ac46226 commit dde8dc8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public void onPlayerInteractEntity(PlayerInteractEntityEvent event) {
@EventHandler(priority = EventPriority.MONITOR)
public void onEntitySpawn(CreatureSpawnEvent event) {
if (!event.isCancelled()) {
if (event.getSpawnReason() == SpawnReason.CUSTOM) {
if (event.getSpawnReason() == SpawnReason.CUSTOM || event.getSpawnReason() == SpawnReason.BEEHIVE) {
return;
}
LivingEntity entity = event.getEntity();
Expand Down

0 comments on commit dde8dc8

Please sign in to comment.