mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 16:45:13 +00:00
Renamed NBT tags to have Tag in the name
This commit is contained in:
@ -26,7 +26,7 @@ use pocketmine\command\CommandSender;
|
||||
use pocketmine\event\TranslationContainer;
|
||||
use pocketmine\item\Item;
|
||||
use pocketmine\nbt\NBT;
|
||||
use pocketmine\nbt\tag\Compound;
|
||||
use pocketmine\nbt\tag\CompoundTag;
|
||||
use pocketmine\Player;
|
||||
use pocketmine\utils\TextFormat;
|
||||
|
||||
@ -70,7 +70,7 @@ class GiveCommand extends VanillaCommand{
|
||||
$exception = $ex;
|
||||
}
|
||||
|
||||
if(!($tags instanceof Compound) or $exception !== null){
|
||||
if(!($tags instanceof CompoundTag) or $exception !== null){
|
||||
$sender->sendMessage(new TranslationContainer("commands.give.tagError", [$exception !== null ? $exception->getMessage() : "Invalid tag conversion"]));
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user