diff --git a/code/game/machinery/vending/cm_vending.dm b/code/game/machinery/vending/cm_vending.dm index d4dfb9b823..18b62b9d77 100644 --- a/code/game/machinery/vending/cm_vending.dm +++ b/code/game/machinery/vending/cm_vending.dm @@ -763,10 +763,9 @@ GLOBAL_LIST_EMPTY(vending_products) /obj/structure/machinery/cm_vending/gear/Initialize() . = ..() - if(length(list(z) & SSmapping.levels_by_trait(ZTRAIT_GROUND))) + if(z in SSmapping.levels_by_trait(ZTRAIT_GROUND)) malfunction() - /obj/structure/machinery/cm_vending/gear/ui_static_data(mob/user) . = ..(user) .["vendor_type"] = "gear" @@ -786,7 +785,7 @@ GLOBAL_LIST_EMPTY(vending_products) /obj/structure/machinery/cm_vending/clothing/Initialize() . = ..() - if(length(list(z) & SSmapping.levels_by_trait(ZTRAIT_GROUND))) + if(z in SSmapping.levels_by_trait(ZTRAIT_GROUND)) malfunction() /obj/structure/machinery/cm_vending/clothing/ui_static_data(mob/user) diff --git a/code/game/machinery/vending/vendor_types/requisitions.dm b/code/game/machinery/vending/vendor_types/requisitions.dm index b824e2bb6e..a0be9e2793 100644 --- a/code/game/machinery/vending/vendor_types/requisitions.dm +++ b/code/game/machinery/vending/vendor_types/requisitions.dm @@ -12,7 +12,7 @@ /obj/structure/machinery/cm_vending/sorted/cargo_guns/Initialize() . = ..() - if(length(list(z) & SSmapping.levels_by_trait(ZTRAIT_GROUND))) + if(z in SSmapping.levels_by_trait(ZTRAIT_GROUND)) malfunction() /obj/structure/machinery/cm_vending/sorted/cargo_guns/vend_fail() @@ -216,7 +216,7 @@ /obj/structure/machinery/cm_vending/sorted/cargo_ammo/Initialize() . = ..() - if(length(list(z) & SSmapping.levels_by_trait(ZTRAIT_GROUND))) + if(z in SSmapping.levels_by_trait(ZTRAIT_GROUND)) malfunction() /obj/structure/machinery/cm_vending/sorted/cargo_ammo/vend_fail() @@ -343,7 +343,7 @@ /obj/structure/machinery/cm_vending/sorted/attachments/Initialize() . = ..() - if(length(list(z) & SSmapping.levels_by_trait(ZTRAIT_GROUND))) + if(z in SSmapping.levels_by_trait(ZTRAIT_GROUND)) malfunction() /obj/structure/machinery/cm_vending/sorted/attachments/vend_fail()