mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-09-27 17:00:47 +00:00
refactor: deglob std::weak_ptr
This commit is contained in:
@@ -12,7 +12,7 @@ TakeFlowerGoal::TakeFlowerGoal(Villager *villager)
|
||||
{
|
||||
takeFlower = false;
|
||||
pickupTick = 0;
|
||||
golem = weak_ptr<VillagerGolem>();
|
||||
golem = std::<VillagerGolem>();
|
||||
|
||||
this->villager = villager;
|
||||
setRequiredControlFlags(Control::MoveControlFlag | Control::LookControlFlag);
|
||||
@@ -36,7 +36,7 @@ bool TakeFlowerGoal::canUse()
|
||||
std::shared_ptr<VillagerGolem> vg = dynamic_pointer_cast<VillagerGolem>(*it);
|
||||
if (vg->getOfferFlowerTick() > 0)
|
||||
{
|
||||
golem = weak_ptr<VillagerGolem>(vg);
|
||||
golem = std::<VillagerGolem>(vg);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -58,7 +58,7 @@ void TakeFlowerGoal::start()
|
||||
|
||||
void TakeFlowerGoal::stop()
|
||||
{
|
||||
golem = weak_ptr<VillagerGolem>();
|
||||
golem = std::<VillagerGolem>();
|
||||
villager->getNavigation()->stop();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user