Merge remote-tracking branch 'origin/main' into 1.18
This commit is contained in:
commit
b13d0a222b
|
|
@ -85,6 +85,11 @@ public abstract class TextureAtlasMixin {
|
||||||
cir.getReturnValue().addAll(storedResults);
|
cir.getReturnValue().addAll(storedResults);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Inject(method = "prepareToStitch", at = @At("HEAD"))
|
||||||
|
private void initMap(CallbackInfoReturnable<TextureAtlas.Preparations> cir) {
|
||||||
|
loadedImages = new ConcurrentHashMap<>();
|
||||||
|
}
|
||||||
|
|
||||||
@Inject(method = "prepareToStitch", at = @At("RETURN"))
|
@Inject(method = "prepareToStitch", at = @At("RETURN"))
|
||||||
private void clearLoadedImages(CallbackInfoReturnable<TextureAtlas.Preparations> cir) {
|
private void clearLoadedImages(CallbackInfoReturnable<TextureAtlas.Preparations> cir) {
|
||||||
loadedImages = Collections.emptyMap();
|
loadedImages = Collections.emptyMap();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user