forked from LogBlock/LogBlock
Do not log bees leaving beehives
This commit is contained in:
@ -136,7 +136,7 @@ public class AdvancedEntityLogging extends LoggingListener {
|
|||||||
@EventHandler(priority = EventPriority.MONITOR)
|
@EventHandler(priority = EventPriority.MONITOR)
|
||||||
public void onEntitySpawn(CreatureSpawnEvent event) {
|
public void onEntitySpawn(CreatureSpawnEvent event) {
|
||||||
if (!event.isCancelled()) {
|
if (!event.isCancelled()) {
|
||||||
if (event.getSpawnReason() == SpawnReason.CUSTOM) {
|
if (event.getSpawnReason() == SpawnReason.CUSTOM || event.getSpawnReason() == SpawnReason.BEEHIVE) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
LivingEntity entity = event.getEntity();
|
LivingEntity entity = event.getEntity();
|
||||||
|
Reference in New Issue
Block a user