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:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user