Skip to content

Commit 59b0adb

Browse files
committed
Fixed RGBBlocksPack issue.
1 parent 608de03 commit 59b0adb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/main/java/platinpython/rgbblocks/util/pack/RGBBlocksPack.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,11 @@ public IoSupplier<InputStream> getResource(PackType type, ResourceLocation id) {
210210
@Override
211211
public void listResources(PackType type, String namespace, String id, ResourceOutput output) {
212212
if (namespace.equals(RGBBlocks.MOD_ID)) {
213-
ResourceLocation resLoc = new ResourceLocation(namespace, id);
214-
output.accept(resLoc, getResource(type, resLoc));
213+
this.resources.forEach((name, supplier) -> {
214+
if (name.getPath().startsWith(id)) {
215+
output.accept(name, getResource(type, name));
216+
}
217+
});
215218
}
216219
}
217220
}

0 commit comments

Comments
 (0)