From 24e0c453779e49c9fc7834c45e044011534b0fcb Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 9 Feb 2018 10:39:22 +0000 Subject: [PATCH] fixed NBT::createTag() fuckup --- src/NBT.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/NBT.php b/src/NBT.php index 8ded39d..a1f2eb9 100644 --- a/src/NBT.php +++ b/src/NBT.php @@ -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; @@ -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"); }