mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Update to latest NBT lib version
This commit is contained in:
@ -65,12 +65,7 @@ class Item implements ItemIds, \JsonSerializable{
|
||||
self::$cachedParser = new LittleEndianNBTStream();
|
||||
}
|
||||
|
||||
$data = self::$cachedParser->read($tag);
|
||||
if(!($data instanceof CompoundTag)){
|
||||
throw new \InvalidArgumentException("Invalid item NBT string given, it could not be deserialized");
|
||||
}
|
||||
|
||||
return $data;
|
||||
return self::$cachedParser->read($tag);
|
||||
}
|
||||
|
||||
private static function writeCompoundTag(CompoundTag $tag) : string{
|
||||
|
Reference in New Issue
Block a user