mirror of
https://github.com/FabricMC/fabric.git
synced 2024-11-26 17:46:25 -05:00
Fix Registry.GAME_EVENT not being synced.
This commit is contained in:
parent
0f72ccf1e7
commit
01912dd2c6
2 changed files with 5 additions and 1 deletions
|
@ -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',
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue