More new data properties

This commit is contained in:
Dylan K. Taylor
2016-10-18 18:31:15 +01:00
parent 867ec6b509
commit 787f6594b2
3 changed files with 8 additions and 6 deletions

View File

@ -190,7 +190,7 @@ abstract class Living extends Entity implements Damageable{
if(!$this->hasEffect(Effect::WATER_BREATHING) and $this->isInsideOfWater()){
if($this instanceof WaterAnimal){
$this->setDataProperty(self::DATA_AIR, self::DATA_TYPE_SHORT, 300);
$this->setDataProperty(self::DATA_AIR, self::DATA_TYPE_SHORT, 400);
}else{
$hasUpdate = true;
$airTicks = $this->getDataProperty(self::DATA_AIR) - $tickDiff;
@ -214,7 +214,7 @@ abstract class Living extends Entity implements Damageable{
}
$this->setDataProperty(self::DATA_AIR, self::DATA_TYPE_SHORT, $airTicks);
}else{
$this->setDataProperty(self::DATA_AIR, self::DATA_TYPE_SHORT, 300);
$this->setDataProperty(self::DATA_AIR, self::DATA_TYPE_SHORT, 400);
}
}
}