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

Protocol changes for 1.21.20 #260

Merged
merged 6 commits into from
Aug 14, 2024
Merged

Protocol changes for 1.21.20 #260

merged 6 commits into from
Aug 14, 2024

Conversation

dries-c
Copy link
Member

@dries-c dries-c commented Aug 13, 2024

No description provided.

src/StopSoundPacket.php Outdated Show resolved Hide resolved
@PMK744
Copy link

PMK744 commented Aug 13, 2024

There seems to be an additional field for the ItemUseInventoryTransaction type.

image

@AzOxStOz

This comment was marked as off-topic.

@JblusItsMe

This comment was marked as off-topic.

@AzOxStOz

This comment was marked as off-topic.

@JblusItsMe

This comment was marked as off-topic.

@Nya-Enzo
Copy link

in terms of the world, i'm pretty sure the solution is to update the blockstates nbt file that provides the runtime block map to the server

@AzOxStOz

This comment was marked as off-topic.

@JblusItsMe

This comment was marked as off-topic.

@AzOxStOz

This comment was marked as off-topic.

@AzOxStOz

This comment was marked as off-topic.

@AzOxStOz

This comment was marked as off-topic.

@JblusItsMe

This comment was marked as off-topic.

@AzOxStOz

This comment was marked as off-topic.

@JblusItsMe

This comment was marked as off-topic.

@AzOxStOz

This comment was marked as off-topic.

@ShockedPlot7560
Copy link
Member

Can you moove into discord or smth and resume here when you're done ?

@fBNTFeujjj

This comment was marked as off-topic.

@AzOxStOz

This comment was marked as off-topic.

@IvanCraft623
Copy link
Member

@fBNTFeujjj @AzOxStOz @JblusItsMe Move your conversation elsewhere and it's make difficult for those who are interested in reviewing the PR

@IvanCraft623
Copy link
Member

Please don't force-push

Copy link

@CJMustard1452 CJMustard1452 left a comment

Choose a reason for hiding this comment

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

this looks very good dries-c

Copy link
Member

@ShockedPlot7560 ShockedPlot7560 left a comment

Choose a reason for hiding this comment

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

Looks ok to me

@dries-c dries-c merged commit a2f231b into pmmp:master Aug 14, 2024
5 checks passed
Copy link
Member

@IvanCraft623 IvanCraft623 left a comment

Choose a reason for hiding this comment

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

CraftRecipeOptionalStackRequestAction needs a repetitions field
CorrectPlayerMovePredictionPacket needs vehicleAngularVelocity field when type is PREDICTION_TYPE_VEHICLE

@@ -50,16 +53,18 @@ public function getIngredients() : array{ return $this->ingredients; }

public static function read(PacketSerializer $in) : self{
$recipeId = $in->readRecipeNetId();
$repetitions2 = $in->getByte();
Copy link
Member

Choose a reason for hiding this comment

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

i know it's mojang fault, but it doesn't have too much sense to repetitions2 is before repetitions

$out->putBool($this->message === null);
if($this->message !== null){
$out->putString($this->message);
$out->putBool($skipMessage = $this->message === null && $this->filteredMessage === null);
Copy link
Member

Choose a reason for hiding this comment

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

This bool is not obvious what it is, what it does is to hide/skip the disconnection screen, please document this

final class TakeFromBundleStackRequestAction extends ItemStackRequestAction{
use GetTypeIdFromConstTrait;
use TakeOrPlaceStackRequestActionTrait;
enum ServerboundLoadingScreenPacketType : int{
Copy link
Member

Choose a reason for hiding this comment

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

Serverbound is a prefix for packets, i think should not be in enums

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.