mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
PhpStorm inspections
Fixed some minor bugs and dropped some obsolete code pocketmine\level\generator namespace is ignored in this commit
This commit is contained in:
@ -34,14 +34,13 @@ use pocketmine\nbt\tag\IntArrayTag;
|
||||
use pocketmine\nbt\tag\IntTag;
|
||||
use pocketmine\nbt\tag\ListTag;
|
||||
use pocketmine\nbt\tag\LongTag;
|
||||
use pocketmine\nbt\tag\NamedTAG;
|
||||
use pocketmine\nbt\tag\NamedTag;
|
||||
use pocketmine\nbt\tag\ShortTag;
|
||||
use pocketmine\nbt\tag\StringTag;
|
||||
use pocketmine\nbt\tag\Tag;
|
||||
|
||||
#ifndef COMPILE
|
||||
use pocketmine\utils\Binary;
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@ -532,7 +531,7 @@ class NBT{
|
||||
|
||||
public function writeTag(Tag $tag, bool $network = false){
|
||||
$this->putByte($tag->getType());
|
||||
if($tag instanceof NamedTAG){
|
||||
if($tag instanceof NamedTag){
|
||||
$this->putString($tag->getName(), $network);
|
||||
}
|
||||
$tag->write($this, $network);
|
||||
|
Reference in New Issue
Block a user