Replaces istype checks for mining tools with tool_behavior checks

This commit is contained in:
ACCount12
2018-02-13 00:09:50 +03:00
parent 2169e8638c
commit f43fcbd1d6
6 changed files with 23 additions and 25 deletions
+1 -1
View File
@@ -198,7 +198,7 @@ GLOBAL_LIST_INIT(sand_recipes, list(\
wires.interact(user)
return
if(istype(I, /obj/item/pickaxe) || istype(I, /obj/item/resonator) || I.force >= 10)
if(I.tool_behaviour == TOOL_MINING || istype(I, /obj/item/resonator) || I.force >= 10)
GibtoniteReaction(user)
return
if(primed)