From adf58d7206b2eb2ee2ff8b4dadbf42758d9c70ff Mon Sep 17 00:00:00 2001 From: Ruben Taelman Date: Sun, 30 Jul 2023 15:09:09 +0200 Subject: [PATCH] Fix invisible light crash in debug worlds, Closes #1287 --- .../cyclops/integrateddynamics/block/BlockInvisibleLight.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/cyclops/integrateddynamics/block/BlockInvisibleLight.java b/src/main/java/org/cyclops/integrateddynamics/block/BlockInvisibleLight.java index 1ff7b7f3367..39907676601 100644 --- a/src/main/java/org/cyclops/integrateddynamics/block/BlockInvisibleLight.java +++ b/src/main/java/org/cyclops/integrateddynamics/block/BlockInvisibleLight.java @@ -66,7 +66,7 @@ public void fillItemCategory(CreativeModeTab p_149666_1_, NonNullList @Override public int getLightEmission(BlockState state, BlockGetter world, BlockPos pos) { if (state.getBlock() == this) { - return world.getBlockState(pos).getValue(LIGHT); + return state.getValue(LIGHT); } return super.getLightEmission(state, world, pos); }