ModernUO/Projects
Kamron Batman ede4bcc718 fix(spawners): make SpawnerDto.ToSpawner() self-cleaning on failure
CreateEmpty() registers the Item in the world before population. If ApplyDto
or subtype-field application throws, the import catch cannot reach the (unassigned)
spawner local, re-opening the orphan leak Approach B prevents. Wrap population in
try/catch in the base ToSpawner() and all three overrides: on failure Delete() the
single Item and rethrow, so the import path only counts the failure.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-25 15:57:02 -07:00
..
Application feat(build-tool): add application icon and refresh MUO.ico (#2487) 2026-06-14 11:59:54 -07:00
BuildTool feat(build-tool): add application icon and refresh MUO.ico (#2487) 2026-06-14 11:59:54 -07:00
Logger fix: Fixes publishing with build tool (#2398) 2026-04-04 00:35:39 -07:00
Server feat(json): add reusable JsonDiscoverableType opt-in marker attribute 2026-06-25 10:17:28 -07:00
Server.Tests feat(json): add reusable JsonDiscoverableType opt-in marker attribute 2026-06-25 10:17:28 -07:00
UOContent fix(spawners): make SpawnerDto.ToSpawner() self-cleaning on failure 2026-06-25 15:57:02 -07:00
UOContent.Tests refactor(spawners): Approach A→B swap — deserialize via SpawnerDto records (atomic) 2026-06-25 15:46:47 -07:00