From 97a1483f758cf13215f548f2227f279db020abb7 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 20 Jul 2018 15:38:53 +0100 Subject: [PATCH] Player: remove useless crap from "constructor" 1. this isn't really the player constructor 2. this shit isn't needed until we start using the player as an actual player --- src/pocketmine/Player.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index 53f928e4f..c71033b7c 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -88,7 +88,6 @@ use pocketmine\level\format\Chunk; use pocketmine\level\Level; use pocketmine\level\Location; use pocketmine\level\Position; -use pocketmine\math\AxisAlignedBB; use pocketmine\math\Vector3; use pocketmine\metadata\MetadataValue; use pocketmine\nbt\NetworkLittleEndianNBTStream; @@ -688,14 +687,10 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{ */ public function __construct(NetworkInterface $interface, string $ip, int $port){ $this->perm = new PermissibleBase($this); - $this->namedtag = new CompoundTag(); $this->server = Server::getInstance(); $this->loaderId = Level::generateChunkLoaderId($this); $this->chunksPerTick = (int) $this->server->getProperty("chunk-sending.per-tick", 4); $this->spawnThreshold = (int) (($this->server->getProperty("chunk-sending.spawn-radius", 4) ** 2) * M_PI); - $this->gamemode = $this->server->getGamemode(); - $this->setLevel($this->server->getDefaultLevel()); - $this->boundingBox = new AxisAlignedBB(0, 0, 0, 0, 0, 0); $this->creationTime = microtime(true);