Fixed Level->scheduleUpdate() tick calculation

This commit is contained in:
Shoghi Cervantes 2014-09-26 16:04:51 +02:00
parent ae6f532b1d
commit 666e5553c2

View File

@ -698,7 +698,7 @@ class Level implements ChunkManager, Metadatable{
* @param int $delay
*/
public function scheduleUpdate(Vector3 $pos, $delay){
$this->updateQueue->insert($pos, (int) $delay);
$this->updateQueue->insert(new Vector3((int) $pos->x, (int) $pos->y, (int) $pos->z), (int) $delay + $this->server->getTick());
}
/**