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
🆑

fix: the auto updating lootpanel now automatically shows new items that
haven't moved yet.

/🆑
This commit is contained in:
Leland Kemble
2026-02-04 18:45:22 -05:00
committed by GitHub
parent ff752cc75f
commit a25deb9bb1
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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()
+2 -2
View File
@@ -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