Skip to content

Commit

Permalink
W przypadku craftingu z pełnymi rękoma, gracz odkłada rzeczy na pobli…
Browse files Browse the repository at this point in the history
…ski stół zamiast pod nogi.

Port: BeeStation/BeeStation-Hornet#9730
  • Loading branch information
UnibelUnibel committed Feb 29, 2024
1 parent 12367c0 commit ed18825
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion code/datums/components/crafting/crafting.dm
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,13 @@
var/atom/movable/result = construct_item(user, TR)
if(!istext(result)) //We made an item and didn't get a fail message
if(ismob(user) && isitem(result)) //In case the user is actually possessing a non mob like a machine
user.put_in_hands(result)
if(!user.put_in_hands(result))
var/turf/front_turf = get_step(user, user.dir)
if(user.TurfAdjacent(front_turf))
if((locate(/obj/structure/table) in front_turf) || (locate(/obj/structure/rack) in front_turf))
result.forceMove(front_turf)
result.pixel_x = rand(-4, 4)
result.pixel_y = rand(-4, 4)
else
result.forceMove(user.drop_location())
to_chat(user, "<span class='notice'>[TR.name] constructed.</span>")
Expand Down

0 comments on commit ed18825

Please sign in to comment.