mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
update SplashScreen NPE
This commit is contained in:
@@ -107,6 +107,8 @@ public class SplashScreen extends FContainer {
|
|||||||
private float progress = 0;
|
private float progress = 0;
|
||||||
private boolean finished, openAdventure;
|
private boolean finished, openAdventure;
|
||||||
private void drawAdventureBackground(Graphics g) {
|
private void drawAdventureBackground(Graphics g) {
|
||||||
|
if (splashTexture == null)
|
||||||
|
return;
|
||||||
float percentage = progress / DURATION;
|
float percentage = progress / DURATION;
|
||||||
float oldAlpha = g.getfloatAlphaComposite();
|
float oldAlpha = g.getfloatAlphaComposite();
|
||||||
if (percentage < 0) {
|
if (percentage < 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user