File tree 2 files changed +4
-3
lines changed
common/src/main/java/com/loohp/multichatdiscordsrvaddon/resources
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -87,8 +87,9 @@ public static TextureAtlases fromAtlasesFolder(ResourcePackFile folder) {
87
87
String sprite = (String ) sourceJson .getOrDefault ("sprite" , resource );
88
88
textureAtlasSource = new TextureAtlasSingleSource (resource , sprite );
89
89
} 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" ));
92
93
textureAtlasSource = new TextureAtlasFilterSource (namespace , path );
93
94
} else if (sourceType .equals (TextureAtlasSourceType .UNSTITCH )) {
94
95
String resource = (String ) sourceJson .get ("resource" );
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public class TextureResource {
45
45
private final String resourceKey ;
46
46
@ Getter
47
47
private final ResourcePackFile file ;
48
- private final boolean isTexture ;
48
+ private final boolean isTexture ;
49
49
private Reference <BufferedImage > texture ;
50
50
@ Getter
51
51
private final UnaryOperator <BufferedImage > imageTransformFunction ;
You can’t perform that action at this time.
0 commit comments