Boolean null pointer fix (issue #91)

This commit is contained in:
paulevsGitch 2021-02-13 22:15:16 +03:00
parent 0940305415
commit cbdf79d0f1

View file

@ -51,8 +51,8 @@ public class BYGIntegration extends ModIntegration {
endBiome.setEdge(edgeBiome); endBiome.setEdge(edgeBiome);
} }
else { else {
boolean isVoid = this.getAndExecuteRuntime(biomeClass, obj, "isVoid"); Boolean isVoid = this.getAndExecuteRuntime(biomeClass, obj, "isVoid");
if (isVoid) { if (isVoid != null && isVoid.booleanValue()) {
EndBiomes.LAND_BIOMES.removeMutableBiome(biomeID); EndBiomes.LAND_BIOMES.removeMutableBiome(biomeID);
EndBiomes.VOID_BIOMES.addBiomeMutable(endBiome); EndBiomes.VOID_BIOMES.addBiomeMutable(endBiome);
} }