From 34a3e0e2cb0d0767d0e16781d557da2548e01c2f Mon Sep 17 00:00:00 2001 From: apple502j <33279053+apple502j@users.noreply.github.com> Date: Thu, 7 Sep 2023 23:09:08 +0900 Subject: [PATCH] Include namespace in modded registry tag path (#3303) * Include namespace in modded registry tag path * Document tag namespace change --- .../fabric/api/event/registry/DynamicRegistries.java | 4 ++++ .../fabric/api/event/registry/FabricRegistryBuilder.java | 4 ++++ .../fabric/mixin/registry/sync/TagManagerLoaderMixin.java | 8 +------- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/api/event/registry/DynamicRegistries.java b/fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/api/event/registry/DynamicRegistries.java index 1c52338ca7..628d6adada 100644 --- a/fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/api/event/registry/DynamicRegistries.java +++ b/fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/api/event/registry/DynamicRegistries.java @@ -37,6 +37,10 @@ *
The list of all dynamic registries, whether from vanilla or mods, can be accessed using * {@link #getDynamicRegistries()}. * + *
Tags for the entries of a custom registry must be placed in
+ * {@code /tags/ Tags for the entries of a custom registry must be placed in
+ * {@code /tags/Synchronization
* Dynamic registries are not synchronized to the client by default.
* To register a synced dynamic registry, you can replace the {@link #register} call
diff --git a/fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/api/event/registry/FabricRegistryBuilder.java b/fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/api/event/registry/FabricRegistryBuilder.java
index 7bc31c316b..0a35a321a7 100644
--- a/fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/api/event/registry/FabricRegistryBuilder.java
+++ b/fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/api/event/registry/FabricRegistryBuilder.java
@@ -44,6 +44,10 @@
* }
*
*
+ *