mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Renamed NBT tags to have Tag in the name
This commit is contained in:
@ -30,8 +30,8 @@ use pocketmine\event\entity\EntityDamageEvent;
|
||||
|
||||
use pocketmine\item\Item as ItemItem;
|
||||
use pocketmine\math\Vector3;
|
||||
use pocketmine\nbt\tag\Byte;
|
||||
use pocketmine\nbt\tag\Int;
|
||||
use pocketmine\nbt\tag\ByteTag;
|
||||
use pocketmine\nbt\tag\IntTag;
|
||||
use pocketmine\network\Network;
|
||||
use pocketmine\network\protocol\AddEntityPacket;
|
||||
use pocketmine\Player;
|
||||
@ -58,7 +58,7 @@ class FallingSand extends Entity{
|
||||
$this->blockId = $this->namedtag["TileID"];
|
||||
}elseif(isset($this->namedtag->Tile)){
|
||||
$this->blockId = $this->namedtag["Tile"];
|
||||
$this->namedtag["TileID"] = new Int("TileID", $this->blockId);
|
||||
$this->namedtag["TileID"] = new IntTag("TileID", $this->blockId);
|
||||
}
|
||||
|
||||
if(isset($this->namedtag->Data)){
|
||||
@ -153,8 +153,8 @@ class FallingSand extends Entity{
|
||||
}
|
||||
|
||||
public function saveNBT(){
|
||||
$this->namedtag->TileID = new Int("TileID", $this->blockId);
|
||||
$this->namedtag->Data = new Byte("Data", $this->damage);
|
||||
$this->namedtag->TileID = new IntTag("TileID", $this->blockId);
|
||||
$this->namedtag->Data = new ByteTag("Data", $this->damage);
|
||||
}
|
||||
|
||||
public function spawnTo(Player $player){
|
||||
|
Reference in New Issue
Block a user