Fixed #767 Players move laggy [gh#767]

This commit is contained in:
Shoghi Cervantes
2013-09-04 19:33:11 +02:00
parent 7f15b27ff0
commit 56d829eec6
2 changed files with 15 additions and 5 deletions

View File

@@ -632,7 +632,7 @@ class Player{
if($m !== ""){
$this->dataPacket(MC_CHAT, array(
"player" => ($author instanceof Player) ? $author->username:$author,
"message" => $m,
"message" => TextFormat::clean($m), //Colors not implemented :(
));
}
}
@@ -1284,6 +1284,7 @@ class Player{
$this->server->api->entity->spawnToAll($this->entity);
$this->server->schedule(5, array($this->entity, "update"), array(), true);
$this->server->schedule(2, array($this->entity, "checkMovement"), array(), true);
$this->sendArmor();
$this->sendChat($this->server->motd."\n");