Fix Registry.GAME_EVENT not being synced.

This commit is contained in:
modmuss50 2021-10-19 16:55:37 +01:00
parent 0f72ccf1e7
commit 01912dd2c6
2 changed files with 5 additions and 1 deletions

View file

@ -1,5 +1,5 @@
archivesBaseName = "fabric-registry-sync-v0" archivesBaseName = "fabric-registry-sync-v0"
version = getSubprojectVersion(project, "0.8.0") version = getSubprojectVersion(project, "0.8.1")
moduleDependencies(project, [ moduleDependencies(project, [
'fabric-api-base', 'fabric-api-base',

View file

@ -166,5 +166,9 @@ public class FabricRegistryInit implements ModInitializer {
// Doesnt seem to be serialised or synced. // Doesnt seem to be serialised or synced.
RegistryAttributeHolder.get(Registry.LOOT_CONDITION_TYPE); RegistryAttributeHolder.get(Registry.LOOT_CONDITION_TYPE);
// Synced in TagManager::toPacket/fromPacket -> TagGroup::serialize/deserialize
RegistryAttributeHolder.get(Registry.GAME_EVENT)
.addAttribute(RegistryAttribute.SYNCED);
} }
} }