mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-17 03:08:58 +00:00
parent
c2dfef700f
commit
d474f73665
@ -291,8 +291,6 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
|||||||
|
|
||||||
protected $stepHeight = 0.6;
|
protected $stepHeight = 0.6;
|
||||||
|
|
||||||
protected $baseOffset = 1.62;
|
|
||||||
|
|
||||||
public $usedChunks = [];
|
public $usedChunks = [];
|
||||||
protected $chunkLoadCount = 0;
|
protected $chunkLoadCount = 0;
|
||||||
protected $loadQueue = [];
|
protected $loadQueue = [];
|
||||||
|
@ -71,6 +71,8 @@ class Human extends Creature implements ProjectileSource, InventoryHolder{
|
|||||||
protected $totalXp = 0;
|
protected $totalXp = 0;
|
||||||
protected $xpSeed;
|
protected $xpSeed;
|
||||||
|
|
||||||
|
protected $baseOffset = 1.62;
|
||||||
|
|
||||||
public function __construct(Level $level, CompoundTag $nbt){
|
public function __construct(Level $level, CompoundTag $nbt){
|
||||||
if($this->skin === "" and (!isset($nbt->Skin) or !isset($nbt->Skin->Data) or !Player::isValidSkin($nbt->Skin->Data->getValue()))){
|
if($this->skin === "" and (!isset($nbt->Skin) or !isset($nbt->Skin->Data) or !Player::isValidSkin($nbt->Skin->Data->getValue()))){
|
||||||
throw new \InvalidStateException((new \ReflectionClass($this))->getShortName() . " must have a valid skin set");
|
throw new \InvalidStateException((new \ReflectionClass($this))->getShortName() . " must have a valid skin set");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user