mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-14 01:24:21 +01:00
Fixes 2 floor light instances not mounting (#94993)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user