mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Improved format constants, fixed cake eating when max health is > 20
This commit is contained in:
@ -224,8 +224,8 @@ class Human extends Creature implements ProjectileSource, InventoryHolder{
|
||||
public function despawnFrom(Player $player){
|
||||
if(isset($this->hasSpawned[$player->getId()])){
|
||||
$pk = new RemovePlayerPacket();
|
||||
$pk->eid = $this->id;
|
||||
$pk->clientID = $this->id;
|
||||
$pk->eid = $this->getId();
|
||||
$pk->clientID = $this->getId();
|
||||
$player->dataPacket($pk->setChannel(Network::CHANNEL_ENTITY_SPAWNING));
|
||||
unset($this->hasSpawned[$player->getId()]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user