mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
New generic in-memory chunk format, fixed 0.17.0.1 chunk loading
Terrible performance, needs profiling. TODO: fix this.
This commit is contained in:
@ -21,7 +21,7 @@
|
||||
|
||||
namespace pocketmine\tile;
|
||||
|
||||
use pocketmine\level\format\FullChunk;
|
||||
use pocketmine\level\format\Chunk;
|
||||
use pocketmine\nbt\tag\ByteTag;
|
||||
use pocketmine\nbt\tag\CompoundTag;
|
||||
use pocketmine\nbt\tag\IntTag;
|
||||
@ -34,7 +34,7 @@ class Skull extends Spawnable{
|
||||
const TYPE_HUMAN = 3;
|
||||
const TYPE_CREEPER = 4;
|
||||
|
||||
public function __construct(FullChunk $chunk, CompoundTag $nbt){
|
||||
public function __construct(Chunk $chunk, CompoundTag $nbt){
|
||||
if(!isset($nbt->SkullType)){
|
||||
$nbt->SkullType = new ByteTag("SkullType", 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user