Skip to content

Commit

Permalink
fixed NBT::createTag() fuckup
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed Feb 14, 2018
1 parent 5e073f7 commit d290969
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/NBT.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
use pocketmine\nbt\tag\IntArrayTag;
use pocketmine\nbt\tag\IntTag;
use pocketmine\nbt\tag\ListTag;
use pocketmine\nbt\tag\LongArrayTag;
use pocketmine\nbt\tag\LongTag;
use pocketmine\nbt\tag\NamedTag;
use pocketmine\nbt\tag\ShortTag;
Expand Down Expand Up @@ -84,6 +85,8 @@ public static function createTag(int $type) : NamedTag{
return new CompoundTag();
case self::TAG_IntArray:
return new IntArrayTag();
case self::TAG_LongArray:
return new LongArrayTag();
default:
throw new \InvalidArgumentException("Unknown NBT tag type $type");
}
Expand Down

0 comments on commit d290969

Please sign in to comment.