Skip to content

Commit

Permalink
Offhand Lights compat fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FalsePattern committed Nov 15, 2024
1 parent 64dc704 commit 3e2eb29
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ private double getLightLevel(int x, int y, int z) {
return MathUtil.clamp(lightLevelMax, 0.0, 15.0);
}

private static int getLightLevel(ItemStack itemStack) {
// Note: Public for easier compat with https://github.com/Tesseract4D/OffhandLights, do not refactor.
public static int getLightLevel(ItemStack itemStack) {
if (itemStack == null) {
return 0;
} else {
Expand Down

0 comments on commit 3e2eb29

Please sign in to comment.