mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Replaces istypes with the proper tool_behaviour checks. (#40414)
This commit is contained in:
committed by
yogstation13-bot
parent
81a1280956
commit
5a29dc43e3
@@ -74,7 +74,9 @@ handles linking back and forth.
|
||||
_MakeLocal()
|
||||
|
||||
/datum/component/remote_materials/proc/OnAttackBy(datum/source, obj/item/I, mob/user)
|
||||
if (istype(I, /obj/item/multitool))
|
||||
if(I.tool_behaviour == TOOL_MULTITOOL)
|
||||
if(!I.multitool_check_buffer(user, I))
|
||||
return COMPONENT_NO_AFTERATTACK
|
||||
var/obj/item/multitool/M = I
|
||||
if (!QDELETED(M.buffer) && istype(M.buffer, /obj/machinery/ore_silo))
|
||||
if (silo == M.buffer)
|
||||
|
||||
Reference in New Issue
Block a user