mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Furnaces and Burning items
This commit is contained in:
parent
221da1685e
commit
f224c26084
10 changed files with 253 additions and 16 deletions
|
|
@ -718,6 +718,17 @@ class CustomPacketHandler{
|
|||
}
|
||||
}
|
||||
break;
|
||||
case MC_CONTAINER_SET_DATA:
|
||||
if($this->c === false){
|
||||
$this->data["windowid"] = ord($this->get(1));
|
||||
$this->data["property"] = Utils::readShort($this->get(2));
|
||||
$this->data["value"] = Utils::readShort($this->get(2));
|
||||
}else{
|
||||
$this->raw .= chr($this->data["windowid"]);
|
||||
$this->raw .= Utils::writeShort($this->data["property"]);
|
||||
$this->raw .= Utils::writeShort($this->data["value"]);
|
||||
}
|
||||
break;
|
||||
case MC_CLIENT_MESSAGE:
|
||||
if($this->c === false){
|
||||
$this->data["message"] = $this->get(Utils::readShort($this->get(2), false));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue