Time now is displayed correctly

This commit is contained in:
Shoghi Cervantes 2013-06-08 14:17:38 +02:00
parent 28480424c5
commit 16a8566fca
3 changed files with 25 additions and 11 deletions

View file

@ -192,9 +192,9 @@ class CustomPacketHandler{
break;
case MC_SET_TIME:
if($this->c === false){
$this->data["time"] = Utils::readLong($this->get(4));
$this->data["time"] = Utils::readInt($this->get(4));
}else{
$this->raw .= Utils::writeLong($this->data["time"]);
$this->raw .= Utils::writeInt($this->data["time"]);
}
break;
case MC_START_GAME: