Skip to content

Commit b71153d

Browse files
authored
Fixes 'note_path' var of 'airlock_note_placer' mapping helper (tgstation#92037)
## About The Pull Request This old mapping helper had a problem with loading notes supplied via its 'note_path' variable. ## Why It's Good For The Game The morgue memo note upon the morgue office door on Wawastation now appears. Here's me testing it on runtime with a different note... ![image](https://github.com/user-attachments/assets/8d81a884-d0d4-4a75-941a-9f7273463e32) ## Changelog :cl: fix: fixed the 'note_path' var of the 'airlock_note_placer' mapping helper /:cl:
1 parent 0af0c78 commit b71153d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

code/modules/mapping/mapping_helpers.dm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,9 @@ INITIALIZE_IMMEDIATE(/obj/effect/mapping_helpers/no_atoms_ontop)
10941094
if(locate(/obj/machinery/door/airlock) in turf)
10951095
var/obj/machinery/door/airlock/found_airlock = locate(/obj/machinery/door/airlock) in turf
10961096
if(note_path)
1097-
found_airlock.note = note_path
1097+
var/obj/item/paper/paper = new note_path(src)
1098+
found_airlock.note = paper
1099+
paper.forceMove(found_airlock)
10981100
found_airlock.update_appearance()
10991101
qdel(src)
11001102
return

0 commit comments

Comments
 (0)