aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/MoveTowardsRestrictionGoal.cpp
diff options
context:
space:
mode:
authorLoki Rautio <lokirautio@gmail.com>2026-03-07 21:12:22 -0600
committerLoki Rautio <lokirautio@gmail.com>2026-03-07 21:12:22 -0600
commit087b7e7abfe81dd7f0fdcdea36ac9f245950df1a (patch)
tree69454763e73ca764af4e682d3573080b13138a0e /Minecraft.World/MoveTowardsRestrictionGoal.cpp
parenta9be52c41a02d207233199e98898fe7483d7e817 (diff)
Revert "Project modernization (#630)"
This code was not tested and breaks in Release builds, reverting to restore functionality of the nightly. All in-game menus do not work and generating a world crashes. This reverts commit a9be52c41a02d207233199e98898fe7483d7e817.
Diffstat (limited to 'Minecraft.World/MoveTowardsRestrictionGoal.cpp')
-rw-r--r--Minecraft.World/MoveTowardsRestrictionGoal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Minecraft.World/MoveTowardsRestrictionGoal.cpp b/Minecraft.World/MoveTowardsRestrictionGoal.cpp
index 1d54f935..2c3900b6 100644
--- a/Minecraft.World/MoveTowardsRestrictionGoal.cpp
+++ b/Minecraft.World/MoveTowardsRestrictionGoal.cpp
@@ -20,7 +20,7 @@ bool MoveTowardsRestrictionGoal::canUse()
if (mob->isWithinRestriction()) return false;
Pos *towards = mob->getRestrictCenter();
Vec3 *pos = RandomPos::getPosTowards(dynamic_pointer_cast<PathfinderMob>(mob->shared_from_this()), 16, 7, Vec3::newTemp(towards->x, towards->y, towards->z));
- if (pos == nullptr) return false;
+ if (pos == NULL) return false;
wantedX = pos->x;
wantedY = pos->y;
wantedZ = pos->z;