TU43 Release 2
+ Added Magma Block, Nether Wart Block, Bone Block, End Stone Block + All Beetroot Items + Polar Bear (excluding audio) + / now opens chat for commands
This commit is contained in:
@@ -208,6 +208,15 @@ void LivingEntity::baseTick()
|
||||
hurt(DamageSource::inWall, 1);
|
||||
}
|
||||
|
||||
if (!level->isClientSide && isAlive() && onGround && !isSneaking() && tickCount % 10 == 0)
|
||||
{
|
||||
int tileBelow = level->getTile(Mth::floor(x), Mth::floor(bb->y0) - 1, Mth::floor(z));
|
||||
if (tileBelow == Tile::magma_Id)
|
||||
{
|
||||
hurt(DamageSource::inFire, 1);
|
||||
}
|
||||
}
|
||||
|
||||
if (isFireImmune() || level->isClientSide) clearFire();
|
||||
shared_ptr<Player> thisPlayer = dynamic_pointer_cast<Player>(shared_from_this());
|
||||
bool isInvulnerable = (thisPlayer != nullptr && thisPlayer->abilities.invulnerable);
|
||||
|
||||
Reference in New Issue
Block a user