Updated flat preset, do not allow empty Level names

This commit is contained in:
Shoghi Cervantes Pueyo 2013-05-19 20:53:12 +02:00
parent bb9067acd7
commit a7a45dfe96
3 changed files with 5 additions and 2 deletions

View file

@ -324,8 +324,8 @@ class PocketMinecraftServer{
public function tick(){
$time = microtime(true);
if($this->lastTick <= ($time - 0.05)){
unset($this->tickMeasure[key($this->tickMeasure)]);
$this->tickMeasure[] = $this->lastTick = $time;
unset($this->tickMeasure[key($this->tickMeasure)]);
$this->tickerFunction($time);
$this->trigger("server.tick", $time);
}