Refactoed 1.21.5 to work with new gif api

This commit is contained in:
2026-03-23 21:05:22 +01:00
parent df102fff84
commit 9fbeac628c
7 changed files with 32 additions and 27 deletions
@@ -42,11 +42,10 @@ public class IdentifierUtils {
}
NativeImageBackedTexture texture = new NativeImageBackedTexture(nativeImage);
SaturnClient.client.execute(() ->
SaturnClient.client.getTextureManager().registerTexture(identifier, texture)
);
SaturnClient.client.execute(() -> {
NativeImageBackedTexture texture = new NativeImageBackedTexture(nativeImage);
SaturnClient.client.getTextureManager().registerTexture(identifier, texture);
});
} catch (Exception e) {
SaturnClient.LOGGER.error("Failed to register texture: {}", identifierRef, e);
@@ -62,9 +61,8 @@ public class IdentifierUtils {
long end = System.currentTimeMillis();
SaturnClient.LOGGER.info(
"Registered {} textures in {}ms",
textures.size(),
(end - start)
);
"Registered {} textures in {}ms",
textures.size(),
(end - start));
}
}