Skip to content

Commit

Permalink
Merge pull request #92 from Kaostico/fix-mob-spawn
Browse files Browse the repository at this point in the history
Fixes mob spawn restricted species validations
  • Loading branch information
carpotoxin authored Sep 24, 2024
2 parents 382d1bf + 51e0fb1 commit f177afb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modular_doppler/modular_mob_spawn/code/mob_spawn.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
var/list/restricted_species = list()

/obj/effect/mob_spawn/ghost_role/create(mob/mob_possessor, newname)
if(restricted_species && !(mob_possessor?.client?.prefs?.read_preference(/datum/preference/choiced/species) in restricted_species))
if(restricted_species.len && !(mob_possessor?.client?.prefs?.read_preference(/datum/preference/choiced/species) in restricted_species))
var/text = "Current loaded character doesn't match required species: "
var/i = 1
for(var/datum/species/speciesItem as anything in restricted_species)
Expand Down

0 comments on commit f177afb

Please sign in to comment.