From efb913ecb473ca359133875399c55efe8e5ea3fd Mon Sep 17 00:00:00 2001 From: Leshana Date: Tue, 14 Apr 2020 17:03:21 -0400 Subject: [PATCH] Fix Runtime in floor_attackby.dm,118: Cannot execute 0.is crowbar(). --- code/game/turfs/simulated/floor_attackby.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/game/turfs/simulated/floor_attackby.dm b/code/game/turfs/simulated/floor_attackby.dm index f3368b5115a..70bc2646a20 100644 --- a/code/game/turfs/simulated/floor_attackby.dm +++ b/code/game/turfs/simulated/floor_attackby.dm @@ -152,10 +152,10 @@ if(T.type == flooring.build_type) return var/obj/item/weapon/W = user.is_holding_item_of_type(/obj/item/weapon) + if(!istype(W)) + return if(!try_deconstruct_tile(W, user)) return if(flooring) return - if(!istype(W)) - return attackby(T, user) \ No newline at end of file