fix datapack dump + change target location

This commit is contained in:
Julian Krings
2024-08-03 16:55:39 +02:00
parent 22f9306fa3
commit d2ecbc5727
10 changed files with 52 additions and 24 deletions

View File

@@ -759,6 +759,7 @@ public class NMSBinding implements INMSBinding {
return registry
.registryKeySet()
.stream()
.filter(id -> !id.location().getNamespace().equals("minecraft"))
.collect(Collectors.toMap(ResourceKey::location, id -> encode(codec, registry.get(id)).orElse(JsonNull.INSTANCE)));
} finally {
changedRegistries.put(registryKey, false);

View File

@@ -802,6 +802,7 @@ public class NMSBinding implements INMSBinding {
return registry
.registryKeySet()
.stream()
.filter(id -> !id.location().getNamespace().equals("minecraft"))
.collect(Collectors.toMap(ResourceKey::location, id -> encode(codec, registry.get(id)).orElse(JsonNull.INSTANCE)));
} finally {
changedRegistries.put(registryKey, false);

View File

@@ -806,6 +806,7 @@ public class NMSBinding implements INMSBinding {
return registry
.registryKeySet()
.stream()
.filter(id -> !id.location().getNamespace().equals("minecraft"))
.collect(Collectors.toMap(ResourceKey::location, id -> encode(codec, registry.get(id)).orElse(JsonNull.INSTANCE)));
} finally {
changedRegistries.put(registryKey, false);

View File

@@ -804,6 +804,7 @@ public class NMSBinding implements INMSBinding {
return registry
.registryKeySet()
.stream()
.filter(id -> !id.location().getNamespace().equals("minecraft"))
.collect(Collectors.toMap(ResourceKey::location, id -> encode(codec, registry.get(id)).orElse(JsonNull.INSTANCE)));
} finally {
changedRegistries.put(registryKey, false);

View File

@@ -810,6 +810,7 @@ public class NMSBinding implements INMSBinding {
return registry
.registryKeySet()
.stream()
.filter(id -> !id.location().getNamespace().equals("minecraft"))
.collect(Collectors.toMap(ResourceKey::location, id -> encode(codec, registry.get(id)).orElse(JsonNull.INSTANCE)));
} finally {
changedRegistries.put(registryKey, false);

View File

@@ -817,6 +817,7 @@ public class NMSBinding implements INMSBinding {
return registry
.registryKeySet()
.stream()
.filter(id -> !id.location().getNamespace().equals("minecraft"))
.collect(Collectors.toMap(ResourceKey::location, id -> encode(codec, registry.get(id)).orElse(JsonNull.INSTANCE)));
} finally {
changedRegistries.put(registryKey, false);

View File

@@ -799,6 +799,7 @@ public class NMSBinding implements INMSBinding {
return registry
.registryKeySet()
.stream()
.filter(id -> !id.location().getNamespace().equals("minecraft"))
.collect(Collectors.toMap(ResourceKey::location, id -> encode(codec, registry.get(id)).orElse(JsonNull.INSTANCE)));
} finally {
changedRegistries.put(registryKey, false);