mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
Update FSkinImage.java
use default sourcefile for MANAICONS
This commit is contained in:
@@ -524,7 +524,7 @@ public enum FSkinImage implements FImage {
|
||||
public void load(Pixmap preferredIcons) {
|
||||
String filename = sourceFile.getFilename();
|
||||
boolean is2D = sourceFile == SourceFile.ADVENTURE;
|
||||
FileHandle preferredFile = FSkin.getSkinFile(filename);
|
||||
FileHandle preferredFile = sourceFile == SourceFile.MANAICONS ? FSkin.getDefaultSkinFile(filename) : FSkin.getSkinFile(filename);
|
||||
Texture texture = Forge.getAssets().getTexture(preferredFile, is2D, false);
|
||||
if (texture == null) {
|
||||
if (preferredFile.exists()) {
|
||||
@@ -639,4 +639,4 @@ public enum FSkinImage implements FImage {
|
||||
public void draw(Graphics g, float x, float y, float w, float h) {
|
||||
g.drawImage(textureRegion, x, y, w, h);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user