port: Spring to Life (1.21.5)

This commit is contained in:
Martin Prokoph
2025-03-26 19:48:18 +01:00
parent fbac443231
commit b73c28d48d
6 changed files with 85 additions and 26 deletions

View File

@@ -107,7 +107,7 @@ public class PuzzleSplashScreen {
try (InputStream stream = resource.getInputStream()) {
Files.copy(stream, BACKGROUND_TEXTURE, StandardCopyOption.REPLACE_EXISTING);
InputStream input = new FileInputStream(String.valueOf(PuzzleSplashScreen.BACKGROUND_TEXTURE));
client.getTextureManager().registerTexture(BACKGROUND, new NativeImageBackedTexture(NativeImage.read(input)));
client.getTextureManager().registerTexture(BACKGROUND, new NativeImageBackedTexture(() -> "splash_screen_background", NativeImage.read(input)));
keepBackground = true;
PuzzleConfig.hasCustomSplashScreen = true;
} catch (Exception e) {