PaperMC / Paper

The most widely used, high performance Minecraft server that aims to fix gameplay and mechanics inconsistencies
https://papermc.io/
Other
9.34k stars 2.2k forks source link

Copy forward when registering alias (fixes #10827) #10952

Open ookiegajwa opened 1 week ago

ookiegajwa commented 1 week ago

When flattening any command or registering an alias to a node with no direct children (such as a redirect), the code now takes into account any potential redirect/fork/forward on the target node. This fixes the issue where, when registering a command that was simply a redirect, only the namespaced literal would work, and not any aliases of the command.

This fixes #10827, and is now correctly based on a non-master branch :)

Owen1212055 commented 1 week ago

Thanks for the PR! Looks good to me, not sure why that wasn’t originally done… that bit of code was missing some logic previously :P