Merge remote-tracking branch 'origin/1.18' into 1.19.2
This commit is contained in:
commit
ed65d5da44
|
|
@ -95,6 +95,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