Skip to content

Commit

Permalink
small fix (#28015)
Browse files Browse the repository at this point in the history
  • Loading branch information
MiraHell authored Jan 28, 2025
1 parent e01a133 commit 7481676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/food_and_drinks/food_base.dm
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@
if(!Adjacent(user))
return
var/obj/item/I = user.get_active_hand()
if(!I)
if(!I || I == src) // dont try to slip inside itself
return
if(I.w_class > WEIGHT_CLASS_SMALL)
to_chat(user, "<span class='warning'>You cannot fit [I] in [src]!</span>")
Expand Down

0 comments on commit 7481676

Please sign in to comment.