add null check
This commit is contained in:
parent
c43be27dc3
commit
88a6cbe826
1 changed files with 1 additions and 1 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue