mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-09 00:24:15 +00:00
@@ -20,7 +20,7 @@ OzelotAttackGoal::OzelotAttackGoal(Mob *mob)
|
||||
|
||||
bool OzelotAttackGoal::canUse()
|
||||
{
|
||||
std::shared_ptr<Mob> bestTarget = mob->getTarget();
|
||||
shared_ptr<Mob> bestTarget = mob->getTarget();
|
||||
if (bestTarget == NULL) return false;
|
||||
target = weak_ptr<Mob>(bestTarget);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user