mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-07-19 05:38:45 +00:00
TU24
This commit is contained in:
@@ -45,7 +45,9 @@ PrimedTnt::PrimedTnt(Level *level, double x, double y, double z, shared_ptr<Livi
|
||||
this->owner = weak_ptr<LivingEntity>(owner);
|
||||
}
|
||||
|
||||
void PrimedTnt::defineSynchedData() {}
|
||||
void PrimedTnt::defineSynchedData()
|
||||
{
|
||||
}
|
||||
|
||||
bool PrimedTnt::makeStepSound()
|
||||
{
|
||||
@@ -80,18 +82,25 @@ void PrimedTnt::tick()
|
||||
{
|
||||
remove();
|
||||
if (!level->isClientSide)
|
||||
{
|
||||
explode();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
level->addParticle(eParticleType_smoke, x, y + 0.5f, z, 0, 0, 0);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
void PrimedTnt::explode()
|
||||
{
|
||||
float r = 4.0f;
|
||||
level->explode(shared_from_this(), x, y, z, r, true);
|
||||
}
|
||||
|
||||
|
||||
void PrimedTnt::addAdditonalSaveData(CompoundTag *entityTag)
|
||||
{
|
||||
entityTag->putByte(L"Fuse", static_cast<BYTE>(life));
|
||||
@@ -110,10 +119,4 @@ float PrimedTnt::getShadowHeightOffs()
|
||||
shared_ptr<LivingEntity> PrimedTnt::getOwner()
|
||||
{
|
||||
return owner.lock();
|
||||
}
|
||||
|
||||
// TU25 Addition
|
||||
float PrimedTnt::getEyeHeight()
|
||||
{
|
||||
return 0.0f;
|
||||
}
|
||||
Reference in New Issue
Block a user