mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- Revert the last couple commits, looks like there is no unwanted console spamming if everything is set up properly.
This commit is contained in:
@@ -95,10 +95,6 @@ public class ImageKeys {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static File getImageFile(String key) {
|
public static File getImageFile(String key) {
|
||||||
return getImageFile(key, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static File getImageFile(String key, boolean quiet) {
|
|
||||||
if (StringUtils.isEmpty(key)) {
|
if (StringUtils.isEmpty(key)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@@ -161,9 +157,7 @@ public class ImageKeys {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!quiet) {
|
|
||||||
System.out.println("File not found, no image created: " + key);
|
System.out.println("File not found, no image created: " + key);
|
||||||
}
|
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ public final class FImageUtil {
|
|||||||
imageKey += "full.jpg";
|
imageKey += "full.jpg";
|
||||||
}
|
}
|
||||||
|
|
||||||
File file = ImageKeys.getImageFile(imageKey, true);
|
File file = ImageKeys.getImageFile(imageKey);
|
||||||
BufferedImage img = null;
|
BufferedImage img = null;
|
||||||
|
|
||||||
if (file != null) {
|
if (file != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user