进一步优化PlayerVariablesSyncMessage编码
This commit is contained in:
parent
b728a04ba1
commit
70dc4c5bb0
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ public record PlayerVariablesSyncMessage(int target, Map<Byte, Integer> data) im
|
|||
public static final CustomPacketPayload.Type<PlayerVariablesSyncMessage> TYPE = new CustomPacketPayload.Type<>(Mod.loc("player_variable_sync"));
|
||||
|
||||
public static final StreamCodec<ByteBuf, PlayerVariablesSyncMessage> STREAM_CODEC = StreamCodec.composite(
|
||||
ByteBufCodecs.INT,
|
||||
ByteBufCodecs.VAR_INT,
|
||||
PlayerVariablesSyncMessage::target,
|
||||
ByteBufCodecs.map(
|
||||
HashMap::new,
|
||||
|
|
Loading…
Add table
Reference in a new issue