mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-17 19:25:06 +00:00
cache decoded images during stitching
This commit is contained in:
1 parent
36f517cb46
commit
5d33558697
3 files changed
+175
-86
No files matched your search
@@ -40,7 +40,7 @@ public abstract class MixinFallbackResourceManager {
|
||||
if (submap == null) return;
|
||||
|
||||
IResource source = getResource(submap.source());
|
||||
cir.setReturnValue(TextureSubmapResource.create(location, source, submap));
|
||||
cir.setReturnValue(new TextureSubmapResource(source, submap, true));
|
||||
}
|
||||
|
||||
@Inject(method = "getAllResources", at = @At("HEAD"), cancellable = true)
|
||||
@@ -54,7 +54,7 @@ public abstract class MixinFallbackResourceManager {
|
||||
List<IResource> resources = new ArrayList<>(sources.size());
|
||||
|
||||
for (IResource source : sources) {
|
||||
resources.add(TextureSubmapResource.create(location, source, submap));
|
||||
resources.add(new TextureSubmapResource(source, submap, false));
|
||||
}
|
||||
|
||||
cir.setReturnValue(resources);
|
||||
|
||||
Reference in new issue
Block a user