Skip to content

Commit

Permalink
Fix crash when using newer versions
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Sep 14, 2024
1 parent 37a5804 commit 0348f45
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ private enum SpriteUtilCompat {
} catch (Throwable t) {
return false;
}
}, SpriteUtil::markSpriteActive),
}, (sawSprite) -> {
try {
SpriteUtil.markSpriteActive(sawSprite);
} catch (Throwable ignored) {}
}),
V0_6(() -> {
try {
return checkMarkSpriteActiveSignature(Class.forName("net.caffeinemc.mods.sodium.client.render.texture.SpriteUtil"));
Expand Down

0 comments on commit 0348f45

Please sign in to comment.