From 9598b8cee43885b2c8a115eb8ad784217bd2e9e0 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Mon, 9 Oct 2017 11:38:52 +0100 Subject: [PATCH] Use API methods instead of directly setting properties --- src/pocketmine/Player.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index fdf1a2204..0fca70260 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -2686,7 +2686,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{ $this->setSneaking(false); $this->extinguish(); - $this->setDataProperty(self::DATA_AIR, self::DATA_TYPE_SHORT, 400); + $this->setAirSupplyTicks($this->getMaxAirSupplyTicks()); $this->deadTicks = 0; $this->noDamageTicks = 60;