mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
fixes #7487
also fixes lag when building APCs in space. Signed-off-by: Mloc-Argent <colmohici@gmail.com>
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
if (!istype(loc, /turf/simulated/floor))
|
||||
usr << "\red APC cannot be placed on this spot."
|
||||
return
|
||||
if (A.requires_power == 0 || A.name == "Space")
|
||||
if (A.requires_power == 0 || istype(A, /area/space))
|
||||
usr << "\red APC cannot be placed in this area."
|
||||
return
|
||||
if (A.get_apc())
|
||||
|
||||
@@ -80,7 +80,7 @@ move an amendment</a> to the drawing.</p>
|
||||
return A
|
||||
|
||||
/obj/item/blueprints/proc/get_area_type(var/area/A = get_area())
|
||||
if (A.name == "Space")
|
||||
if(istype(A, /area/space))
|
||||
return AREA_SPACE
|
||||
var/list/SPECIALS = list(
|
||||
/area/shuttle,
|
||||
|
||||
Reference in New Issue
Block a user