Some tile improvements and added ItemFrame tile

This commit is contained in:
Dylan K. Taylor
2016-11-27 14:05:42 +00:00
parent 50d59619a6
commit 90957cd908
7 changed files with 137 additions and 33 deletions

View File

@ -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;