Skip to content

Commit

Permalink
Fix invisible light crash in debug worlds, Closes #1287
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Jul 30, 2023
1 parent 699f136 commit adf58d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void fillItemCategory(CreativeModeTab p_149666_1_, NonNullList<ItemStack>
@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);
}
Expand Down

0 comments on commit adf58d7

Please sign in to comment.