Fix texture reload failing on second try
This commit is contained in:
parent
9d4d1cc9b4
commit
d33ebd69e8
|
|
@ -85,6 +85,11 @@ public abstract class TextureAtlasMixin {
|
|||
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"))
|
||||
private void clearLoadedImages(CallbackInfoReturnable<TextureAtlas.Preparations> cir) {
|
||||
loadedImages = Collections.emptyMap();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user