fix server crash on egg laying (#12318)

This commit is contained in:
Kashargul
2026-01-24 17:34:25 +01:00
committed by GitHub
parent d64306aa5c
commit efb73ab369
15 changed files with 27 additions and 27 deletions
@@ -6,7 +6,7 @@
else
user.visible_message(span_filter_notice("[user] begins securing \the [src] to the floor."), span_filter_notice("You start securing \the [src] to the floor."))
if(do_after(user, 20 * W.toolspeed))
if(do_after(user, 20 * W.toolspeed, src))
if(!src) return
to_chat(user, span_notice("You [anchored? "un" : ""]secured \the [src]!"))
anchored = !anchored