Do not log bees leaving beehives

This commit is contained in:
Brokkonaut
2021-01-16 06:21:53 +01:00
parent ac462261dc
commit dde8dc8289

View File

@ -136,7 +136,7 @@ public class AdvancedEntityLogging extends LoggingListener {
@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();