aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/SpruceFeature.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/SpruceFeature.cpp')
-rw-r--r--Minecraft.World/SpruceFeature.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Minecraft.World/SpruceFeature.cpp b/Minecraft.World/SpruceFeature.cpp
index 39d628cf..d42e46f3 100644
--- a/Minecraft.World/SpruceFeature.cpp
+++ b/Minecraft.World/SpruceFeature.cpp
@@ -23,7 +23,7 @@ bool SpruceFeature::place(Level *level, Random *random, int x, int y, int z)
}
// 4J Stu Added to stop tree features generating areas previously place by game rule generation
- if(app.getLevelGenerationOptions() != NULL)
+ if(app.getLevelGenerationOptions() != nullptr)
{
LevelGenerationOptions *levelGenOptions = app.getLevelGenerationOptions();
bool intersects = levelGenOptions->checkIntersects(x - leafRadius, y - 1, z - leafRadius, x + leafRadius, y + treeHeight, z + leafRadius);