Skip to content

fix: Consolidate reconnection logic and transform utilities#1139

Merged
braedonsaunders merged 1 commit into
mainfrom
claude/fix-multiplayer-reconnection-D6e4k
Jan 30, 2026
Merged

fix: Consolidate reconnection logic and transform utilities#1139
braedonsaunders merged 1 commit into
mainfrom
claude/fix-multiplayer-reconnection-D6e4k

Conversation

@braedonsaunders

Copy link
Copy Markdown
Owner
  1. Reconnection logic (useMultiplayer + multiplayerStore):

    • Add isReconnectingRef to track reconnection state
    • Prevent joinLobby from resetting to host mode during reconnection
    • multiplayerStore now owns the reconnection state machine exclusively
    • Hook provides the reconnection action without conflicting state
  2. Transform utilities (InstancedDecorations):

    • Import shared TransformUtils from InstancedMeshPool
    • Remove duplicate _tempMatrix, _tempPosition, _tempQuaternion, _tempScale from InstancedTrees, InstancedRocks, InstancedCrystals, InstancedGrass, and InstancedPebbles classes
    • Use shared _transformUtils module-level instance for all classes

https://claude.ai/code/session_01VX6tjzQFatTTvZfSQ8RGMW

1. Reconnection logic (useMultiplayer + multiplayerStore):
   - Add isReconnectingRef to track reconnection state
   - Prevent joinLobby from resetting to host mode during reconnection
   - multiplayerStore now owns the reconnection state machine exclusively
   - Hook provides the reconnection action without conflicting state

2. Transform utilities (InstancedDecorations):
   - Import shared TransformUtils from InstancedMeshPool
   - Remove duplicate _tempMatrix, _tempPosition, _tempQuaternion, _tempScale
     from InstancedTrees, InstancedRocks, InstancedCrystals, InstancedGrass,
     and InstancedPebbles classes
   - Use shared _transformUtils module-level instance for all classes

https://claude.ai/code/session_01VX6tjzQFatTTvZfSQ8RGMW
@braedonsaunders braedonsaunders merged commit 5b924eb into main Jan 30, 2026
4 checks passed
@braedonsaunders braedonsaunders deleted the claude/fix-multiplayer-reconnection-D6e4k branch January 30, 2026 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants