From 07087b5bcd7da9d47c781fb1d44628594d38872a Mon Sep 17 00:00:00 2001 From: LatvianModder Date: Wed, 24 Jul 2024 22:22:11 +0300 Subject: [PATCH] Fixed tag logging method --- src/main/java/dev/latvian/mods/kubejs/core/TagLoaderKJS.java | 2 +- .../latvian/mods/kubejs/registry/RegistryObjectStorage.java | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/dev/latvian/mods/kubejs/core/TagLoaderKJS.java b/src/main/java/dev/latvian/mods/kubejs/core/TagLoaderKJS.java index 0cfd95bb6..125955bd1 100644 --- a/src/main/java/dev/latvian/mods/kubejs/core/TagLoaderKJS.java +++ b/src/main/java/dev/latvian/mods/kubejs/core/TagLoaderKJS.java @@ -81,7 +81,7 @@ public interface TagLoaderKJS { kjs$resources.kjs$getServerScriptManager().getRegistries().cacheTags(reg, map); if (DataExport.export != null) { - var loc = "tags/" + objStorage.key.location() + "/"; + var loc = "tags/" + objStorage + "/"; for (var entry : map.entrySet()) { var list = new ArrayList(); diff --git a/src/main/java/dev/latvian/mods/kubejs/registry/RegistryObjectStorage.java b/src/main/java/dev/latvian/mods/kubejs/registry/RegistryObjectStorage.java index e1df7920d..4518b2543 100644 --- a/src/main/java/dev/latvian/mods/kubejs/registry/RegistryObjectStorage.java +++ b/src/main/java/dev/latvian/mods/kubejs/registry/RegistryObjectStorage.java @@ -48,4 +48,9 @@ private RegistryObjectStorage(ResourceKey key) { public Iterator> iterator() { return objects.values().iterator(); } + + @Override + public String toString() { + return key.location().toString(); + } }