diff --git a/code/game/objects/structures/railings.dm b/code/game/objects/structures/railings.dm
index 42e8f5dc2b1..570f26cf71d 100644
--- a/code/game/objects/structures/railings.dm
+++ b/code/game/objects/structures/railings.dm
@@ -29,13 +29,16 @@
to_chat(user, "[src] is already in good condition!")
return
- if(!(flags_1&NODECONSTRUCT_1))
- if(I.tool_behaviour == TOOL_WRENCH)
- to_chat(user, "You begin to [anchored ? "unfasten the railing from":"fasten the railing to"] the floor...")
- if(I.use_tool(src, user, volume = 75, extra_checks = CALLBACK(src, .proc/check_anchored, anchored)))
- setAnchored(!anchored)
- to_chat(user, "You [anchored ? "fasten the railing to":"unfasten the railing from"] the floor.")
- return
+///Implements behaviour that makes it possible to unanchor the railing.
+/obj/structure/railing/wrench_act(mob/living/user, obj/item/I)
+ . = ..()
+ if(flags_1&NODECONSTRUCT_1)
+ return
+ to_chat(user, "You begin to [anchored ? "unfasten the railing from":"fasten the railing to"] the floor...")
+ if(I.use_tool(src, user, volume = 75, extra_checks = CALLBACK(src, .proc/check_anchored, anchored)))
+ setAnchored(!anchored)
+ to_chat(user, "You [anchored ? "fasten the railing to":"unfasten the railing from"] the floor.")
+ return TRUE
/obj/structure/railing/proc/check_anchored(checked_anchored)
if(anchored == checked_anchored)