mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-14 01:24:21 +01:00
Fixes airlocks reverting to normal versions if you added glass prior to the frame's mineral
This commit is contained in:
@@ -216,6 +216,17 @@
|
||||
G.use(2)
|
||||
var/mineralassembly = text2path("/obj/structure/door_assembly/door_assembly_[M]")
|
||||
var/obj/structure/door_assembly/MA = new mineralassembly(loc)
|
||||
|
||||
if(MA.noglass && glass) //in case the new door doesn't support glass. prevents the new one from reverting to a normal airlock after being constructed.
|
||||
var/obj/item/stack/sheet/dropped_glass
|
||||
if(heat_proof_finished)
|
||||
dropped_glass = new /obj/item/stack/sheet/rglass(drop_location())
|
||||
heat_proof_finished = FALSE
|
||||
else
|
||||
dropped_glass = new /obj/item/stack/sheet/glass(drop_location())
|
||||
glass = FALSE
|
||||
to_chat(user, "<span class='notice'>As you finish, a [dropped_glass.singular_name] falls out of [MA]'s frame.</span>")
|
||||
|
||||
transfer_assembly_vars(src, MA, TRUE)
|
||||
else
|
||||
to_chat(user, "<span class='warning'>You need at least two sheets add a mineral cover!</span>")
|
||||
|
||||
Reference in New Issue
Block a user