File tree 2 files changed +4
-3
lines changed
common/src/main/java/com/loohp/interactivechatdiscordsrvaddon/resources
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -85,8 +85,9 @@ public static TextureAtlases fromAtlasesFolder(ResourcePackFile folder) {
85
85
String sprite = (String ) sourceJson .getOrDefault ("sprite" , resource );
86
86
textureAtlasSource = new TextureAtlasSingleSource (resource , sprite );
87
87
} else if (sourceType .equals (TextureAtlasSourceType .FILTER )) {
88
- Pattern namespace = Pattern .compile ((String ) sourceJson .get ("namespace" ));
89
- Pattern path = Pattern .compile ((String ) sourceJson .get ("path" ));
88
+ JSONObject patternJson = (JSONObject ) sourceJson .get ("pattern" );
89
+ Pattern namespace = Pattern .compile ((String ) patternJson .get ("namespace" ));
90
+ Pattern path = Pattern .compile ((String ) patternJson .get ("path" ));
90
91
textureAtlasSource = new TextureAtlasFilterSource (namespace , path );
91
92
} else if (sourceType .equals (TextureAtlasSourceType .UNSTITCH )) {
92
93
String resource = (String ) sourceJson .get ("resource" );
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public class TextureResource {
41
41
private final ITextureManager manager ;
42
42
private final String resourceKey ;
43
43
private final ResourcePackFile file ;
44
- private final boolean isTexture ;
44
+ private final boolean isTexture ;
45
45
private Reference <BufferedImage > texture ;
46
46
private final UnaryOperator <BufferedImage > imageTransformFunction ;
47
47
You can’t perform that action at this time.
0 commit comments