mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Fixed Tiles/Entities not using the correct chunk type
This commit is contained in:
@ -22,6 +22,7 @@
|
||||
namespace pocketmine\tile;
|
||||
|
||||
use pocketmine\level\format\Chunk;
|
||||
use pocketmine\level\format\FullChunk;
|
||||
use pocketmine\nbt\NBT;
|
||||
use pocketmine\nbt\tag\Compound;
|
||||
use pocketmine\network\protocol\EntityDataPacket;
|
||||
@ -48,7 +49,7 @@ abstract class Spawnable extends Tile{
|
||||
|
||||
public abstract function getSpawnCompound();
|
||||
|
||||
public function __construct(Chunk $chunk, Compound $nbt){
|
||||
public function __construct(FullChunk $chunk, Compound $nbt){
|
||||
parent::__construct($chunk, $nbt);
|
||||
$this->spawnToAll();
|
||||
}
|
||||
|
Reference in New Issue
Block a user