This commit is contained in:
ch-yx authored and gnembon committed 2022-08-28 18:59:11 +02:00
1 parent 4a5fe26136
commit e2e5bb2242
1 file changed
+3
@@ -517,6 +517,9 @@ public class WorldAccess {
expression.addContextFunction("sky_light", -1, (c, t, lv) -> expression.addContextFunction("sky_light", -1, (c, t, lv) ->
genericStateTest(c, "sky_light", lv, (s, p, w) -> new NumericValue(w.getBrightness(LightLayer.SKY, p)))); genericStateTest(c, "sky_light", lv, (s, p, w) -> new NumericValue(w.getBrightness(LightLayer.SKY, p))));
expression.addContextFunction("real_light", -1, (c, t, lv) ->
genericStateTest(c, "real_light", lv, (s, p, w) -> new NumericValue(w.getMaxLocalRawBrightness(p))));
expression.addContextFunction("see_sky", -1, (c, t, lv) -> expression.addContextFunction("see_sky", -1, (c, t, lv) ->
genericStateTest(c, "see_sky", lv, (s, p, w) -> BooleanValue.of(w.canSeeSky(p)))); genericStateTest(c, "see_sky", lv, (s, p, w) -> BooleanValue.of(w.canSeeSky(p))));