Maybe fixed something?

This commit is contained in:
coolGi2007
2022-02-02 02:39:04 +00:00
parent c5aeac5091
commit 35ab1ce47f
@@ -498,7 +498,7 @@ public class LodRegion {
int modPosX = LevelPosUtil.getRegionModule(detailLevel, posX);
int modPosZ = LevelPosUtil.getRegionModule(detailLevel, posZ);
if (dataContainer[detailLevel].doesItExist(modPosX, modPosZ))
if (dataContainer[detailLevel] != null && dataContainer[detailLevel].doesItExist(modPosX, modPosZ))
// We take the bottom information always
// TODO what does that mean? bottom of what?
return DataPointUtil.getGenerationMode(dataContainer[detailLevel].getSingleData(modPosX, modPosZ));