Refactoed 1.21.5 to work with new gif api
This commit is contained in:
+7
-9
@@ -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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user