Skip to content

Commit

Permalink
fixes teleport bug
Browse files Browse the repository at this point in the history
  • Loading branch information
=vero committed Mar 24, 2024
1 parent 9fb1a9c commit bd09972
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions code/game/objects/structures/stool_bed_chair_nest/bed.dm
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,14 @@
if(ismob(G.grabbed_thing))
var/mob/M = G.grabbed_thing
var/atom/blocker = LinkBlocked(user, user.loc, loc)
if(!src.Adjacent(M))
visible_message(SPAN_DANGER("[M] is too far to place onto the [src]"))
return FALSE
if(blocker)
to_chat(user, SPAN_WARNING("\The [blocker] is in the way!"))
else
to_chat(user, SPAN_NOTICE("You place [M] on [src]."))
M.forceMove(loc)
return FALSE
to_chat(user, SPAN_NOTICE("You place [M] on [src]."))
M.forceMove(loc)
return TRUE

else
Expand Down

0 comments on commit bd09972

Please sign in to comment.