Skip to content

Commit a9c0466

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 1eea967 + 7f29ac8 commit a9c0466

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

common/src/main/java/com/loohp/multichatdiscordsrvaddon/resources/TextureAtlases.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,9 @@ public static TextureAtlases fromAtlasesFolder(ResourcePackFile folder) {
8787
String sprite = (String) sourceJson.getOrDefault("sprite", resource);
8888
textureAtlasSource = new TextureAtlasSingleSource(resource, sprite);
8989
} else if (sourceType.equals(TextureAtlasSourceType.FILTER)) {
90-
Pattern namespace = Pattern.compile((String) sourceJson.get("namespace"));
91-
Pattern path = Pattern.compile((String) sourceJson.get("path"));
90+
JSONObject patternJson = (JSONObject) sourceJson.get("pattern");
91+
Pattern namespace = Pattern.compile((String) patternJson.get("namespace"));
92+
Pattern path = Pattern.compile((String) patternJson.get("path"));
9293
textureAtlasSource = new TextureAtlasFilterSource(namespace, path);
9394
} else if (sourceType.equals(TextureAtlasSourceType.UNSTITCH)) {
9495
String resource = (String) sourceJson.get("resource");

common/src/main/java/com/loohp/multichatdiscordsrvaddon/resources/textures/TextureResource.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class TextureResource {
4545
private final String resourceKey;
4646
@Getter
4747
private final ResourcePackFile file;
48-
private final boolean isTexture;
48+
private final boolean isTexture;
4949
private Reference<BufferedImage> texture;
5050
@Getter
5151
private final UnaryOperator<BufferedImage> imageTransformFunction;

0 commit comments

Comments
 (0)