1.21 update
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user