From b5a51abd16ee4b5ca86d90568f9e05ae86cf3cfb Mon Sep 17 00:00:00 2001 From: "C.L" Date: Fri, 30 Sep 2022 23:00:15 -0400 Subject: [PATCH] Fixes lighting. Fixes lighting bug. Will apply to buildmode as well. --- code/game/objects/items/blueprints_vr.dm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/code/game/objects/items/blueprints_vr.dm b/code/game/objects/items/blueprints_vr.dm index 59aec7a8a23..1b9f60f91c3 100644 --- a/code/game/objects/items/blueprints_vr.dm +++ b/code/game/objects/items/blueprints_vr.dm @@ -393,9 +393,10 @@ else newA = area_choice - for(var/i in 1 to length(turfs)) + for(var/i in 1 to length(turfs)) //Fix lighting. Praise the lord. var/turf/thing = turfs[i] newA.contents += thing + thing.change_area(oldA, newA) set_area_machinery(newA, newA.name, oldA.name)// Change the name and area defines of all the machinery to the correct area. @@ -490,6 +491,12 @@ newA.setup(str) else newA.setup(newA.name) + + for(var/i in 1 to length(turfs)) //Fix lighting. Praise the lord. + var/turf/thing = turfs[i] + newA.contents += thing + thing.change_area(oldA, newA) + move_turfs_to_area(turfs, newA) newA.has_gravity = oldA.has_gravity set_area_machinery(newA, newA.name, oldA.name)