convert TileFactory to singleton

This commit is contained in:
Dylan K. Taylor
2020-04-26 01:11:30 +01:00
parent 2d55b2db1b
commit ac5cf2443e
6 changed files with 43 additions and 47 deletions

View File

@ -163,7 +163,7 @@ class Block{
}
}
if($oldTile === null and $tileType !== null){
$this->pos->getWorldNonNull()->addTile(TileFactory::create($tileType, $this->pos->getWorld(), $this->pos->asVector3()));
$this->pos->getWorldNonNull()->addTile(TileFactory::getInstance()->create($tileType, $this->pos->getWorld(), $this->pos->asVector3()));
}
}