mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
fix missing planes not downloading
- resets texture to null to reload
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user