Fixes an inverted if check on false wall attackby code. (#73459)

## About The Pull Request

#64428 made it so using a non-tool on a false wall that was closed would
return the "You must wait until the door has stopped moving" message,
this was caused by a flipped if statement so I've re-flipped it by
changing it to an early return instead.
## Why It's Good For The Game

Bug fix!
## Changelog
🆑
fix: False walls will no longer tell you to wait until they've stopped
moving when you use an item on them.
/🆑

Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com>
This commit is contained in:
NamelessFairy
2023-02-17 14:39:16 +00:00
committed by GitHub
parent 31b418b0cf
commit d131588cf3
+3 -3
View File
@@ -113,9 +113,9 @@
/obj/structure/falsewall/attackby(obj/item/W, mob/user, params)
if(!opening)
to_chat(user, span_warning("You must wait until the door has stopped moving!"))
return
return ..()
return ..()
to_chat(user, span_warning("You must wait until the door has stopped moving!"))
return
/obj/structure/falsewall/proc/dismantle(mob/user, disassembled=TRUE, obj/item/tool = null)
user.visible_message(span_notice("[user] dismantles the false wall."), span_notice("You dismantle the false wall."))