Updated NBT dependency

this needs further changes (particularly to Furnace) to stop things abusing NBT for runtime data handling, otherwise performance is going to drop off a cliff.
This commit is contained in:
Dylan K. Taylor
2018-04-04 10:29:32 +01:00
parent 1fc388d6de
commit 99134de6b6
4 changed files with 9 additions and 9 deletions

View File

@ -28,7 +28,7 @@ use pocketmine\command\CommandSender;
use pocketmine\command\utils\InvalidCommandSyntaxException;
use pocketmine\item\ItemFactory;
use pocketmine\lang\TranslationContainer;
use pocketmine\nbt\JsonNBTParser;
use pocketmine\nbt\JsonNbtParser;
use pocketmine\nbt\tag\CompoundTag;
use pocketmine\utils\TextFormat;
@ -75,7 +75,7 @@ class GiveCommand extends VanillaCommand{
$tags = $exception = null;
$data = implode(" ", array_slice($args, 3));
try{
$tags = JsonNBTParser::parseJSON($data);
$tags = JsonNbtParser::parseJson($data);
}catch(\Exception $ex){
$exception = $ex;
}