Skip to content

Commit

Permalink
[MIRROR] Fix runtimes from mouse-dropping non-items on tables
Browse files Browse the repository at this point in the history
  • Loading branch information
SierraKomodo authored and SuhEugene committed Sep 22, 2023
1 parent a4aa8e4 commit d20f195
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/tables/tables.dm
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@

/obj/structure/table/MouseDrop_T(atom/dropped, mob/user)
// Place held objects on table
if (user.IsHolding(dropped))
if (isitem(dropped) && user.IsHolding(dropped))
if (!user.use_sanity_check(src, dropped, SANITY_CHECK_DEFAULT | SANITY_CHECK_TOOL_UNEQUIP))
return TRUE
user.unEquip(dropped, get_turf(src))
Expand Down

0 comments on commit d20f195

Please sign in to comment.