aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/Creeper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/Creeper.cpp')
-rw-r--r--Minecraft.World/Creeper.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Minecraft.World/Creeper.cpp b/Minecraft.World/Creeper.cpp
index 2403d3a4..3f6c66a7 100644
--- a/Minecraft.World/Creeper.cpp
+++ b/Minecraft.World/Creeper.cpp
@@ -34,7 +34,7 @@ Creeper::Creeper(Level *level) : Monster( level )
health = getMaxHealth();
_init();
-
+
this->textureIdx = TN_MOB_CREEPER; // 4J was L"/mob/creeper.png";
goalSelector.addGoal(1, new FloatGoal(this));
@@ -125,14 +125,14 @@ void Creeper::die(DamageSource *source)
spawnAtLocation(Item::record_01_Id + random->nextInt(12), 1);
}
- std::shared_ptr<Player> player = dynamic_pointer_cast<Player>(source->getEntity());
+ shared_ptr<Player> player = dynamic_pointer_cast<Player>(source->getEntity());
if ( (dynamic_pointer_cast<Arrow>(source->getDirectEntity()) != NULL) && (player != NULL) )
{
player->awardStat(GenericStats::archer(), GenericStats::param_archer());
}
}
-bool Creeper::doHurtTarget(std::shared_ptr<Entity> target)
+bool Creeper::doHurtTarget(shared_ptr<Entity> target)
{
return true;
}
@@ -162,7 +162,7 @@ void Creeper::setSwellDir(int dir)
entityData->set(DATA_SWELL_DIR, (byte) dir);
}
-void Creeper::thunderHit(const LightningBolt *lightningBolt)
+void Creeper::thunderHit(const LightningBolt *lightningBolt)
{
Monster::thunderHit(lightningBolt);
entityData->set(DATA_IS_POWERED, (byte) 1);