mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-12 23:54:24 +01:00
fix disposal target (#19279)
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
/obj/structure/disposaloutlet/Initialize(mapload)
|
||||
. = ..()
|
||||
|
||||
target = get_ranged_target_turf(src, dir, 10)
|
||||
update_target()
|
||||
|
||||
var/obj/structure/disposalpipe/trunk/trunk = locate() in get_turf(src)
|
||||
AddComponent(/datum/component/disposal_system_connection)
|
||||
@@ -99,5 +99,12 @@
|
||||
|
||||
T.assume_air(gas)
|
||||
|
||||
/obj/structure/disposaloutlet/set_dir(newdir)
|
||||
. = ..()
|
||||
update_target()
|
||||
|
||||
/obj/structure/disposaloutlet/proc/update_target()
|
||||
target = get_ranged_target_turf(src, dir, 10)
|
||||
|
||||
#undef OUTLET_SCREWED
|
||||
#undef OUTLET_UNSCREWED
|
||||
|
||||
Reference in New Issue
Block a user