Skip to content

Commit

Permalink
Adds LIGHTNING and DEFAULT as valid spawn reasons for natural mob spa…
Browse files Browse the repository at this point in the history
…wning (#2219)
  • Loading branch information
OmerBenGera committed Sep 13, 2024
1 parent a1f66fa commit 31315ff
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ public boolean preventEntitySpawn(Location location, CreatureSpawnEvent.SpawnRea
case "VILLAGE_INVASION":
case "VILLAGE_DEFENSE":
case "PATROL":
case "BEEHIVE": {
case "BEEHIVE":
case "LIGHTNING":
case "DEFAULT": {
switch (BukkitEntities.getCategory(entityType)) {
case ANIMAL:
actionFlag = IslandFlags.NATURAL_ANIMALS_SPAWN;
Expand Down

0 comments on commit 31315ff

Please sign in to comment.