update SplashScreen NPE

This commit is contained in:
Anthony Calosa
2022-11-21 15:46:35 +08:00
parent 79e5b29b81
commit e2fb34f0d1

View File

@@ -107,6 +107,8 @@ public class SplashScreen extends FContainer {
private float progress = 0;
private boolean finished, openAdventure;
private void drawAdventureBackground(Graphics g) {
if (splashTexture == null)
return;
float percentage = progress / DURATION;
float oldAlpha = g.getfloatAlphaComposite();
if (percentage < 0) {