Fix Spectate command #422
No reviewers
Labels
No labels
documentation
good first issue
help wanted
resolution: duplicate
resolution: invalid
resolution: won't fix
status: needs triage
type: bug
type: feature
type: performance
type: question
version: 1.19.4
version: 1.20
version: 1.20.1
version: 1.20.2
version: 1.20.4
version: 1.20.6
version: 1.21.11
version: 1.21.4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Minecraft/Folia!422
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "CraftCanvasMC/fix/spectate-command"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
While probably not a necessary command to reimplement into Folia, it should probably be implemented for more Vanilla parity and such.
The fix introduced here essentially schedules the full method in a very similar way as the other command patches. The
ServerPlayer#setCameramethod is already patched to support off-region targets, so we schedule the method contents to theServerPlayerspectator.Ive tested this via the command below:
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.