Skip to content

session/player.go: Decouple debugShapeToProtocol from Session#1182

Merged
DaPigGuy merged 1 commit intodf-mc:masterfrom
hydzilla:master
Feb 21, 2026
Merged

session/player.go: Decouple debugShapeToProtocol from Session#1182
DaPigGuy merged 1 commit intodf-mc:masterfrom
hydzilla:master

Conversation

@hydzilla
Copy link
Copy Markdown
Contributor

Converted debugShapeToProtocol to a standalone function. This follows the same pattern as instanceFromItem, stackToItem, protocolToSkin, and others, which are already standalone functions and serve a similar purpose of converting to a protocol representation.

This is required to be able to use the function outside of the session package with linkname, which I wish to do.

The only issue with this change is that s.dimensionID() had to be replaced since the function no longer has access to the session. If necessary, Session.dimensionID could be decoupled, also.

Copy link
Copy Markdown
Member

@DaPigGuy DaPigGuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure

@DaPigGuy DaPigGuy merged commit 0d016f7 into df-mc:master Feb 21, 2026
3 checks passed
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