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
+5 -4
View File
@@ -3,15 +3,16 @@ org.gradle.jvmargs=-Xmx2G
# Fabric Properties
# check these on https://fabricmc.net/versions.html
minecraft_version=1.20.6
yarn_mappings=1.20.6+build.3
minecraft_version=1.21
yarn_mappings=1.21+build.2
loader_version=0.15.11
# Fabric API
fabric_version=0.100.2+1.20.6
fabric_version=0.100.2+1.21
# Mod Properties
mod_version=1.4.3
mod_version=1.4.4
maven_group=dev.draylar
archives_base_name=omega-config
modmenu_version=7.1.0
@@ -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();