New Entity update system, scheduled updates when needed only

This commit is contained in:
Shoghi Cervantes 2013-05-31 13:44:06 +02:00
parent 3ac4b0af68
commit 66e635daeb
8 changed files with 91 additions and 50 deletions

View file

@ -40,9 +40,9 @@ class FallableBlock extends SolidBlock{
"Tile" => $this->id,
);
$server = ServerAPI::request();
$this->level->setBlock($this, new AirBlock());
$e = $server->api->entity->add($this->level, ENTITY_FALLING, FALLING_SAND, $data);
$server->api->entity->spawnToAll($this->level, $e->eid);
$this->level->setBlock($this, new AirBlock());
}
}
}