From 01912dd2c63b3e62b9f87f39c6043cbebc1874f1 Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Tue, 19 Oct 2021 16:55:37 +0100 Subject: [PATCH] Fix Registry.GAME_EVENT not being synced. --- fabric-registry-sync-v0/build.gradle | 2 +- .../fabric/impl/registry/sync/FabricRegistryInit.java | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/fabric-registry-sync-v0/build.gradle b/fabric-registry-sync-v0/build.gradle index 955afa8ed..1b01b6e35 100644 --- a/fabric-registry-sync-v0/build.gradle +++ b/fabric-registry-sync-v0/build.gradle @@ -1,5 +1,5 @@ archivesBaseName = "fabric-registry-sync-v0" -version = getSubprojectVersion(project, "0.8.0") +version = getSubprojectVersion(project, "0.8.1") moduleDependencies(project, [ 'fabric-api-base', diff --git a/fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/impl/registry/sync/FabricRegistryInit.java b/fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/impl/registry/sync/FabricRegistryInit.java index 4246276e0..967f611a4 100644 --- a/fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/impl/registry/sync/FabricRegistryInit.java +++ b/fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/impl/registry/sync/FabricRegistryInit.java @@ -166,5 +166,9 @@ public class FabricRegistryInit implements ModInitializer { // Doesnt seem to be serialised or synced. RegistryAttributeHolder.get(Registry.LOOT_CONDITION_TYPE); + + // Synced in TagManager::toPacket/fromPacket -> TagGroup::serialize/deserialize + RegistryAttributeHolder.get(Registry.GAME_EVENT) + .addAttribute(RegistryAttribute.SYNCED); } }