Add WrappedPositionMoveRotation for 1.21.2+ entity teleport packets#3610
Add WrappedPositionMoveRotation for 1.21.2+ entity teleport packets#3610
Conversation
…1.2+ packet support Agent-Logs-Url: https://github.com/dmulloy2/ProtocolLib/sessions/a2043827-e96e-4714-b875-8ca66b72e91b Co-authored-by: dmulloy2 <3039119+dmulloy2@users.noreply.github.com>
|
Uhhhhhhhhh I don't think this is correct at all... 1.20.4 1.21.11 PositionMoveRotation is not a thing |
|
@copilot add some unit tests to verify that you can modify the packet and read the proper value back |
|
@copilot you also have a few compilation errors |
Agent-Logs-Url: https://github.com/dmulloy2/ProtocolLib/sessions/aad8f880-cbb2-49a9-8f74-21794fdd8e60 Co-authored-by: dmulloy2 <3039119+dmulloy2@users.noreply.github.com>
Added
Also fixed 3 compilation errors that were caught by CI: renamed the private static Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Those were fixed in commit bec4eac:
|
|
@copilot you have the wrong package name for PositionMoveRotation |
Agent-Logs-Url: https://github.com/dmulloy2/ProtocolLib/sessions/d78c114a-498c-4ea3-84c0-1ea88a84865c Co-authored-by: dmulloy2 <3039119+dmulloy2@users.noreply.github.com>
Fixed in ea01331. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot almost there. for the testFromHandle test, create a NMS PositionMoveRotation from some constant values and test that the created wrapper has those values |
… values Agent-Logs-Url: https://github.com/dmulloy2/ProtocolLib/sessions/b61d9e0d-18ea-4386-9316-9733b409a4cc Co-authored-by: dmulloy2 <3039119+dmulloy2@users.noreply.github.com>
Updated in e8a382e. |
Agent-Logs-Url: https://github.com/dmulloy2/ProtocolLib/sessions/c0b73ba6-894f-4182-b21f-6bf6675c214f Co-authored-by: dmulloy2 <3039119+dmulloy2@users.noreply.github.com>
WrappedPositionMoveRotationTestand build/test setuptestFromHandleto construct the underlying NMSPositionMoveRotationdirectly from constant valuesWrappedPositionMoveRotationTest(blocked locally by unresolvedorg.spigotmc:spigot-api:26.1-R0.1-SNAPSHOTdependency in this sandbox)🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.