diff --git a/src/main/java/uk/antiperson/stackmob/listeners/SpawnListener.java b/src/main/java/uk/antiperson/stackmob/listeners/SpawnListener.java index fbdcc98f..328a8130 100644 --- a/src/main/java/uk/antiperson/stackmob/listeners/SpawnListener.java +++ b/src/main/java/uk/antiperson/stackmob/listeners/SpawnListener.java @@ -1,5 +1,6 @@ package uk.antiperson.stackmob.listeners; +import org.bukkit.entity.Bee; import org.bukkit.entity.Entity; import org.bukkit.entity.LivingEntity; import org.bukkit.entity.Mob; @@ -23,6 +24,11 @@ public void onSpawn(CreatureSpawnEvent event) { if (!(event.getEntity() instanceof Mob)) { return; } + if (event.getEntity() instanceof Bee) { + if (event.getSpawnReason() == CreatureSpawnEvent.SpawnReason.BEEHIVE) { + return; + } + } sm.getServer().getScheduler().runTask(sm, () -> { if (sm.getEntityManager().isStackedEntity(event.getEntity())) { StackEntity stackEntity = sm.getEntityManager().getStackEntity(event.getEntity());