9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-26 02:19:19 +00:00

Updated Upstream (Gale/Leaves)

Upstream has released updates that appear to apply and compile correctly

Gale Changes:
Dreeam-qwq/Gale@9c48e95c Update LithiumHashPalette

Leaves Changes:
LeavesMC/Leaves@74cb952f Fix some protocol
LeavesMC/Leaves@99b3aafc Fix bot action, and entity tickCount
This commit is contained in:
Dreeam
2025-02-07 15:50:02 -05:00
parent 14403885ae
commit 81be1d35dd
6 changed files with 21 additions and 15 deletions

View File

@@ -38,14 +38,14 @@ public record RequestBlockPayload(BlockAccessorImpl.SyncData data, List<@Nullabl
CODEC.encode(ProtocolUtils.decorate(buf), this);
}
@New
public static RequestBlockPayload create(ResourceLocation location, FriendlyByteBuf buf) {
return CODEC.decode(ProtocolUtils.decorate(buf));
}
@Override
@NotNull
public ResourceLocation id() {
return PACKET_REQUEST_BLOCK;
}
}
@New
public static RequestBlockPayload create(ResourceLocation location, FriendlyByteBuf buf) {
return CODEC.decode(ProtocolUtils.decorate(buf));
}
}

View File

@@ -41,14 +41,15 @@ public record RequestEntityPayload(EntityAccessorImpl.SyncData data,
CODEC.encode(ProtocolUtils.decorate(buf), this);
}
@New
public static RequestEntityPayload create(ResourceLocation location, FriendlyByteBuf buf) {
return CODEC.decode(ProtocolUtils.decorate(buf));
}
@Override
@NotNull
public ResourceLocation id() {
return PACKET_REQUEST_ENTITY;
}
@New
public static RequestEntityPayload create(ResourceLocation location, FriendlyByteBuf buf) {
return CODEC.decode(ProtocolUtils.decorate(buf));
}
}

View File

@@ -43,4 +43,9 @@ public record ServerHandshakePayload(Map<ResourceLocation, Object> serverConfig,
public ResourceLocation id() {
return PACKET_SERVER_HANDSHAKE;
}
@New
public static ServerHandshakePayload create(ResourceLocation location, FriendlyByteBuf buf) {
return CODEC.decode(ProtocolUtils.decorate(buf));
}
}