Fixed sometimes using items on full storage items (#36711)
* Fixed sometimes using items on full storage items * Removed redundant code and fixed spray being used on container
This commit is contained in:
committed by
CitadelStationBot
parent
5dddb2db45
commit
80fee95dab
@@ -207,7 +207,9 @@
|
||||
/obj/structure/closet/attackby(obj/item/W, mob/user, params)
|
||||
if(user in src)
|
||||
return
|
||||
if(!src.tool_interact(W,user))
|
||||
if(src.tool_interact(W,user))
|
||||
return 1 // No afterattack
|
||||
else
|
||||
return ..()
|
||||
|
||||
/obj/structure/closet/proc/tool_interact(obj/item/W, mob/user)//returns TRUE if attackBy call shouldnt be continued (because tool was used/closet was of wrong type), FALSE if otherwise
|
||||
|
||||
Reference in New Issue
Block a user