mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Some cleanup to how tiles are created
This commit is contained in:
@ -26,9 +26,11 @@ namespace pocketmine\tile;
|
||||
use pocketmine\item\Item;
|
||||
use pocketmine\item\ItemFactory;
|
||||
use pocketmine\level\Level;
|
||||
use pocketmine\math\Vector3;
|
||||
use pocketmine\nbt\tag\ByteTag;
|
||||
use pocketmine\nbt\tag\CompoundTag;
|
||||
use pocketmine\nbt\tag\FloatTag;
|
||||
use pocketmine\Player;
|
||||
|
||||
class ItemFrame extends Spawnable{
|
||||
|
||||
@ -92,4 +94,9 @@ class ItemFrame extends Spawnable{
|
||||
}
|
||||
}
|
||||
|
||||
protected static function createAdditionalNBT(CompoundTag $nbt, Vector3 $pos, ?int $face = null, ?Item $item = null, ?Player $player = null) : void{
|
||||
$nbt->ItemDropChance = new FloatTag("ItemDropChance", 1.0);
|
||||
$nbt->ItemRotation = new ByteTag("ItemRotation", 0);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user