Skip to content

Commit

Permalink
Merge pull request #6906 from vtcifer/fix_roomobj_plant_checks
Browse files Browse the repository at this point in the history
  • Loading branch information
MahtraDR authored Sep 4, 2024
2 parents d2a919f + bc47a9a commit f2e449a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion safe-room.lic
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ class SafeRoom
return false unless empath

DRCT.walk_to room_id
return false unless DRRoom.pcs.include?(empath) || DRRoom.room_objs.grep(@plant_regex)
return false unless DRRoom.pcs.include?(empath) || DRRoom.room_objs.grep(@plant_regex).size > 0

unless DRRoom.pcs.include?(empath)
if /.*vela.tohr (\w+)/ =~ DRRoom.room_objs.grep(@plant_regex).to_s
Expand Down

0 comments on commit f2e449a

Please sign in to comment.