From 7cf8c49a903f795a08ac99419bf73f4a3929fc7e Mon Sep 17 00:00:00 2001 From: Anthony Calosa Date: Sat, 4 Nov 2023 01:03:07 +0800 Subject: [PATCH] fix missing planes not downloading - resets texture to null to reload --- forge-gui-mobile/src/forge/assets/FSkinTexture.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/forge-gui-mobile/src/forge/assets/FSkinTexture.java b/forge-gui-mobile/src/forge/assets/FSkinTexture.java index 4afda8b2a37..6ebce7ae318 100644 --- a/forge-gui-mobile/src/forge/assets/FSkinTexture.java +++ b/forge-gui-mobile/src/forge/assets/FSkinTexture.java @@ -117,8 +117,10 @@ public enum FSkinTexture implements FImage { public boolean load(String planeName) { if (hasError) return false; - if (!planeName.isEmpty()) + if (!planeName.isEmpty()) { + texture = null; //reset this.filename = planeName + ".jpg"; + } FileHandle preferredFile = isPlanechaseBG ? FSkin.getCachePlanechaseFile(filename) : FSkin.getSkinFile(filename); if (preferredFile.exists()) { try {