mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Some tile improvements and added ItemFrame tile
This commit is contained in:
@ -47,12 +47,7 @@ class Skull extends Spawnable{
|
||||
public function setType($type){
|
||||
if($type >= 0 && $type <= 4){
|
||||
$this->namedtag->SkullType = new ByteTag("SkullType", $type);
|
||||
$this->spawnToAll();
|
||||
|
||||
if($this->chunk){
|
||||
$this->chunk->setChanged();
|
||||
$this->level->clearChunkCache($this->chunk->getX(), $this->chunk->getZ());
|
||||
}
|
||||
$this->onChanged();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user