[MIRROR] Fixes crowbars hitting toilets when opening the cistern (#7939)

* Fixes crowbars hitting toilets (#61171)

fixes #61125
It returns an attack chain cancel now

* Fixes crowbars hitting toilets when opening the cistern

Co-authored-by: ArcaneDefence <51932756+ArcaneDefence@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-09-03 03:56:36 +01:00
committed by GitHub
co-authored by ArcaneDefence
parent 0d9df1a8fa
commit 514ac1f90b
@@ -103,6 +103,7 @@
user.visible_message(span_notice("[user] [cistern ? "replaces the lid on the cistern" : "lifts the lid off the cistern"]!"), span_notice("You [cistern ? "replace the lid on the cistern" : "lift the lid off the cistern"]!"), span_hear("You hear grinding porcelain."))
cistern = !cistern
update_appearance()
return COMPONENT_CANCEL_ATTACK_CHAIN
else if(I.tool_behaviour == TOOL_WRENCH && !(flags_1&NODECONSTRUCT_1))
I.play_tool_sound(src)
deconstruct()