Fix dungeon state visibility regression and document client follow-ups
- Add safe sprite-config deserialization to prevent DUNGEON_STATE tick failures when mob sprite JSON is invalid - Include definitionId consistently in mob payloads and preserve one-time mob catalog flow for client art preload - Send active portals on every state update to avoid portal disappearance under spatial throttling - Add root pending-clientChanges.md documenting required client handling for spatially filtered mobs, mobCatalog, and portal state
This commit is contained in:
@@ -423,8 +423,7 @@ public sealed partial class DungeonHandler
|
||||
health = m.Health,
|
||||
maxHealth = m.MaxHealth,
|
||||
state = m.State.ToString().ToLower(),
|
||||
spriteConfig = string.IsNullOrEmpty(m.SpriteConfigJson) ? null :
|
||||
System.Text.Json.JsonSerializer.Deserialize<object>(m.SpriteConfigJson),
|
||||
spriteConfig = DeserializeSpriteConfigSafe(m.SpriteConfigJson),
|
||||
tintColor = m.TintColor,
|
||||
scale = m.Scale
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user