Skip to content

Commit

Permalink
Fixed mob spawn restricted species validations
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaostico committed Sep 24, 2024
1 parent 6af34bc commit 51e0fb1
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 51e0fb1

Please sign in to comment.