1.21 update

This commit is contained in:
frqnny
2024-06-17 17:16:47 -04:00
parent de04d5a2cf
commit 3b91570a8c
2 changed files with 6 additions and 5 deletions
@@ -237,7 +237,7 @@ public class OmegaConfig implements ModInitializer {
}
public record SyncConfigPayload(NbtCompound nbtCompound) implements CustomPayload {
public static final Identifier CONFIG_SYNC_PACKET = new Identifier("omegaconfig", "sync");
public static final Identifier CONFIG_SYNC_PACKET = Identifier.of("omegaconfig", "sync");
public static final CustomPayload.Id<SyncConfigPayload> ID = new Id<>(CONFIG_SYNC_PACKET);
public static final PacketCodec<PacketByteBuf, SyncConfigPayload> CODEC = PacketCodecs.NBT_COMPOUND.xmap(SyncConfigPayload::new, SyncConfigPayload::nbtCompound).cast();