Fixes 2 floor light instances not mounting (#94993)

This commit is contained in:
SyncIt21
2026-01-30 00:21:49 +05:30
committed by GitHub
parent 772be3db96
commit 362ac3d7f3
2 changed files with 8 additions and 0 deletions
+2
View File
@@ -175,6 +175,7 @@
L.setDir(get_dir(winner, interacting_with))
L.color = color_choice
L.set_light_color(color_choice)
L.find_and_mount_on_atom()
useResource(cost, user)
return ITEM_INTERACT_SUCCESS
@@ -185,6 +186,7 @@
var/obj/machinery/light/floor/FL = new /obj/machinery/light/floor(target)
FL.color = color_choice
FL.set_light_color(color_choice)
FL.find_and_mount_on_atom()
useResource(cost, user)
return ITEM_INTERACT_SUCCESS
@@ -184,3 +184,9 @@
icon_state = "floor-construct-stage1"
fixture_type = "floor"
sheets_refunded = 1
/obj/structure/light_construct/floor/get_turfs_to_mount_on()
return list(get_turf(src))
/obj/structure/light_construct/floor/is_mountable_turf(turf/target)
return !isgroundlessturf(target)