fix: stupid

This commit is contained in:
Tropical
2026-03-08 22:43:59 +01:00
committed by JuiceyDev
parent a744f8f471
commit a05a15eb73
68 changed files with 118 additions and 118 deletions
@@ -16,7 +16,7 @@ MoveTowardsTargetGoal::MoveTowardsTargetGoal(PathfinderMob *mob, float speed, fl
bool MoveTowardsTargetGoal::canUse()
{
target = std::<Mob>(mob->getTarget());
target = std::weak_ptr<Mob>(mob->getTarget());
if (target.lock() == NULL) return false;
if (target.lock()->distanceToSqr(mob->shared_from_this()) > within * within) return false;
Vec3 *pos = RandomPos::getPosTowards(dynamic_pointer_cast<PathfinderMob>(mob->shared_from_this()), 16, 7, Vec3::newTemp(target.lock()->x, target.lock()->y, target.lock()->z));
@@ -34,7 +34,7 @@ bool MoveTowardsTargetGoal::canContinueToUse()
void MoveTowardsTargetGoal::stop()
{
target = std::<Mob>();
target = std::weak_ptr<Mob>();
}
void MoveTowardsTargetGoal::start()