menu
#4219717 Return value of pocketmine\entity\Living::getAirSupplyTicks() must be of the type int, null returned

Submitted by PocketMine-MP 3.12.0

General information

Version: 3.12.0
Git commit: 77d45bf1
Plugin involvement: None
Report date: 2020-05-23 01:37:01 +0000 UTC

System Information

PHP version: 7.3.17
Operating system: win
System banner: Windows NT LAPTOP-AJKR2OBQ 10.0 build 18363 (Windows 10) AMD64

Error information

Message: Return value of pocketmine\entity\Living::getAirSupplyTicks() must be of the type int, null returned
File: src/pocketmine/entity/Living
Line: #752
Error level: TypeError
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
	public function setBreathing(bool $value = true) : void{
$this->setGenericFlag(self::DATA_FLAG_BREATHING, $value);
}

/**
* Returns the number of ticks remaining in the entity's air supply. Note that the entity may survive longer than
* this amount of time without damage due to enchantments such as Respiration.
*/
public function getAirSupplyTicks() : int{
return $this->propertyManager->getShort(self::DATA_AIR);
}

/**
* Sets the number of air ticks left in the entity's air supply.
*/
public function setAirSupplyTicks(int $ticks) : void{
$this->propertyManager->setShort(self::DATA_AIR, $ticks);
}

/**
#0 src/pocketmine/entity/Living(694): pocketmine\entity\Living->getAirSupplyTicks()
#1 src/pocketmine/entity/Living(661): pocketmine\entity\Living->doAirSupplyTick(integer 1)
#2 src/pocketmine/entity/Human(627): pocketmine\entity\Living->entityBaseTick(integer 1)
#3 src/pocketmine/entity/Entity(1383): pocketmine\entity\Human->entityBaseTick(integer 1)
#4 src/pocketmine/level/Level(844): pocketmine\entity\Entity->onUpdate(integer 649)
#5 src/pocketmine/level/Level(777): pocketmine\level\Level->actuallyDoTick(integer 649)
#6 src/pocketmine/Server(2256): pocketmine\level\Level->doTick(integer 649)
#7 src/pocketmine/Server(2387): pocketmine\Server->checkTickUpdates(integer 649, double 1590197821.9603)
#8 src/pocketmine/Server(2143): pocketmine\Server->tick()
#9 src/pocketmine/Server(1990): pocketmine\Server->tickProcessor()
#10 src/pocketmine/Server(1584): pocketmine\Server->start()
#11 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[31] C:\Users\Danilo\Desktop\server\, string[39] C:\Users\Danilo\Desktop\server\plugins\)
#12 src/pocketmine/PocketMine(296): pocketmine\server()
#13 (11): require(string[86] phar://C:/Users/Danilo/Desktop/server/PocketMine-MP.phar/src/pocketmine/PocketMi)

Loaded Plugins

  • Show

Server Settings

  • Show