mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
Added Level::startTime() and Level::stopTime()
This commit is contained in:
parent
9137a36b55
commit
5eed43ddd0
2 changed files with 22 additions and 2 deletions
|
|
@ -193,8 +193,10 @@ class CustomPacketHandler{
|
|||
case MC_SET_TIME:
|
||||
if($this->c === false){
|
||||
$this->data["time"] = Utils::readInt($this->get(4));
|
||||
$this->data["started"] = ord($this->get(1)) & 0x80 > 0;
|
||||
}else{
|
||||
$this->raw .= Utils::writeInt($this->data["time"])."\x80";
|
||||
$this->raw .= chr((isset($this->data["started"]) and $this->data["started"] == true) ? 0x80:0x00);
|
||||
}
|
||||
break;
|
||||
case MC_START_GAME:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue