Merge pull request #4621 from Citadel-Station-13/upstream-merge-33948

[MIRROR] stops frying abstract or nodrop items
This commit is contained in:
LetterJay
2018-01-02 15:44:26 -06:00
committed by GitHub

View File

@@ -93,8 +93,8 @@ God bless America.
else if(default_deconstruction_screwdriver(user, "fryer_off", "fryer_off" ,I)) //where's the open maint panel icon?!
return
else
if(is_type_in_typecache(I, deepfry_blacklisted_items))
. = ..()
if(is_type_in_typecache(I, deepfry_blacklisted_items) || (I.flags_1 & (ABSTRACT_1 | NODROP_1 | DROPDEL_1)))
return ..()
else if(!frying && user.transferItemToLoc(I, src))
to_chat(user, "<span class='notice'>You put [I] into [src].</span>")
frying = new/obj/item/reagent_containers/food/snacks/deepfryholder(src, I)