1
0

Gives all entities the default airlevel on creation (#3942)

* Guardians don't take damage on land
* Squids suffocate on land
This commit is contained in:
Bond-009
2017-08-25 15:44:36 +02:00
committed by Alexander Harkness
parent 4b84288801
commit 3c8712d871
3 changed files with 30 additions and 17 deletions

View File

@@ -56,8 +56,8 @@ cEntity::cEntity(eEntityType a_EntityType, double a_X, double a_Y, double a_Z, d
m_TicksSinceLastVoidDamage(0),
m_IsSwimming(false),
m_IsSubmerged(false),
m_AirLevel(0),
m_AirTickTimer(0),
m_AirLevel(MAX_AIR_LEVEL),
m_AirTickTimer(DROWNING_TICKS),
m_TicksAlive(0),
m_IsTicking(false),
m_ParentChunk(nullptr),