From a25deb9bb1005b4399a2da2e70bda4089d1959e4 Mon Sep 17 00:00:00 2001 From: Leland Kemble <70413276+lelandkemble@users.noreply.github.com> Date: Wed, 4 Feb 2026 18:45:22 -0500 Subject: [PATCH] Fixes newly created objects not appearing in auto updating lootpanel (#95083) ## About The Pull Request Makes the auto updating lootpanel listen for `COMSIG_ATOM_AFTER_SUCCESSFUL_INITIALIZED_ON` in addition to `COMSIG_ATOM_ENTERED`, allowing it to pick up newly created objects. ## Why It's Good For The Game fixes #95038 ## Changelog :cl: fix: the auto updating lootpanel now automatically shows new items that haven't moved yet. /:cl: --- code/modules/lootpanel/_lootpanel.dm | 2 +- code/modules/lootpanel/misc.dm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code/modules/lootpanel/_lootpanel.dm b/code/modules/lootpanel/_lootpanel.dm index c4215b60f95..f7cfab8d8cd 100644 --- a/code/modules/lootpanel/_lootpanel.dm +++ b/code/modules/lootpanel/_lootpanel.dm @@ -45,7 +45,7 @@ /datum/lootpanel/ui_close(mob/user) . = ..() - UnregisterSignal(source_turf, COMSIG_ATOM_ENTERED) + UnregisterSignal(source_turf, list(COMSIG_ATOM_ENTERED, COMSIG_ATOM_AFTER_SUCCESSFUL_INITIALIZED_ON)) source_turf = null reset_contents() diff --git a/code/modules/lootpanel/misc.dm b/code/modules/lootpanel/misc.dm index 2a5123752a2..8f510cd4331 100644 --- a/code/modules/lootpanel/misc.dm +++ b/code/modules/lootpanel/misc.dm @@ -2,8 +2,8 @@ /datum/lootpanel/proc/open(turf/tile) if (tile != source_turf) if (source_turf) - UnregisterSignal(source_turf, COMSIG_ATOM_ENTERED) - RegisterSignal(tile, COMSIG_ATOM_ENTERED, PROC_REF(on_source_turf_entered)) + UnregisterSignal(source_turf, list(COMSIG_ATOM_ENTERED, COMSIG_ATOM_AFTER_SUCCESSFUL_INITIALIZED_ON)) + RegisterSignals(tile, list(COMSIG_ATOM_ENTERED, COMSIG_ATOM_AFTER_SUCCESSFUL_INITIALIZED_ON), PROC_REF(on_source_turf_entered)) source_turf = tile