Items spawn, Tiles spawn, both are saved, blocks drop

This commit is contained in:
Shoghi Cervantes
2014-05-24 17:25:37 +02:00
parent f2dc9cdff7
commit ec055fd8d1
9 changed files with 293 additions and 48 deletions

View File

@ -40,11 +40,6 @@ abstract class Tile extends Position{
public static $tileCount = 1;
/**
* @var Tile[]
*/
public static $list = [];
/**
* @var Tile[]
*/
@ -76,7 +71,6 @@ abstract class Tile extends Position{
$this->name = "";
$this->lastUpdate = microtime(true);
$this->id = Tile::$tileCount++;
Tile::$list[$this->id] = $this;
$this->x = (int) $this->namedtag["x"];
$this->y = (int) $this->namedtag["y"];
$this->z = (int) $this->namedtag["z"];