Skip to content

Commit 3e2eb29

Browse files
committed
Offhand Lights compat fix
1 parent 64dc704 commit 3e2eb29

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/com/falsepattern/falsetweaks/modules/dynlights/base/DynamicLights.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,8 @@ private double getLightLevel(int x, int y, int z) {
231231
return MathUtil.clamp(lightLevelMax, 0.0, 15.0);
232232
}
233233

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

0 commit comments

Comments
 (0)