Automatically set Entity / Tile entity save identifiers

This commit is contained in:
Shoghi Cervantes
2014-11-04 12:04:08 +01:00
parent a5369b3570
commit 8fd6582e74
31 changed files with 49 additions and 74 deletions

View File

@ -50,7 +50,6 @@ class FallingSand extends Entity{
public $canCollide = false;
protected function initEntity(){
$this->namedtag->id = new String("id", "FallingSand");
if(isset($this->namedtag->TileID)){
$this->blockId = $this->namedtag["TileID"];
}elseif(isset($this->namedtag->Tile)){