1
0
Fork 0

add null check

This commit is contained in:
Sen 2025-09-01 11:55:23 +02:00
parent c43be27dc3
commit 88a6cbe826
Signed by: sen
GPG key ID: 3AC50A6F47D1B722

View file

@ -4071,7 +4071,7 @@ public class Renderer {
pos = new BlockPos(pos.getX(), -World.MAX_SIZE_Y, pos.getZ());
}
if(!World.isValid(pos)) {
if(!World.isValid(pos) || this.gm.world == null) {
return 0;
}
else if(this.gm.world.getState(pos).getBlock().getSumBrightness()) {