Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename CommandTreeS2CPacket.rootSize to rootIndex #4073

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

0x000006
Copy link
Contributor

@0x000006 0x000006 commented Jan 1, 2025

It would be more logical because it has nothing to do with size/length.

This is the context it is used in:

// CommandTreeS2CPacket lines 183 - 185
public RootCommandNode<CommandSource> getCommandTree(CommandRegistryAccess commandRegistryAccess) {
    return (RootCommandNode)new CommandTree(commandRegistryAccess, this.nodes).getNode(this.rootSize /* here */);
}

@Shnupbups Shnupbups added bug Fixes or discusses a bug within the mappings release A PR that targets a release version of Minecraft labels Jan 2, 2025
@Shnupbups Shnupbups merged commit 1a7852e into FabricMC:1.21.4 Jan 2, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes or discusses a bug within the mappings release A PR that targets a release version of Minecraft
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants