mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 17:59:41 +00:00
Fix ItemFrame crash
This commit is contained in:
parent
5feff79875
commit
772abc609d
@ -22,7 +22,7 @@
|
||||
namespace pocketmine\tile;
|
||||
|
||||
use pocketmine\item\Item;
|
||||
use pocketmine\level\format\FullChunk;
|
||||
use pocketmine\level\format\Chunk;
|
||||
use pocketmine\nbt\tag\ByteTag;
|
||||
use pocketmine\nbt\tag\CompoundTag;
|
||||
use pocketmine\nbt\tag\FloatTag;
|
||||
@ -31,7 +31,7 @@ use pocketmine\nbt\tag\StringTag;
|
||||
|
||||
class ItemFrame extends Spawnable{
|
||||
|
||||
public function __construct(FullChunk $chunk, CompoundTag $nbt){
|
||||
public function __construct(Chunk $chunk, CompoundTag $nbt){
|
||||
if(!isset($nbt->ItemRotation)){
|
||||
$nbt->ItemRotation = new ByteTag("ItemRotation", 0);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user