mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
Double chest checks, chest opening broadcast
This commit is contained in:
parent
68e78ba40b
commit
8d408996f4
3 changed files with 67 additions and 24 deletions
|
|
@ -492,6 +492,21 @@ class CustomPacketHandler{
|
|||
$this->raw .= Utils::writeInt($this->data["unknown5"]);
|
||||
}
|
||||
break;
|
||||
case MC_TILE_EVENT:
|
||||
if($this->c === false){
|
||||
$this->data["x"] = Utils::readInt($this->get(4));
|
||||
$this->data["y"] = Utils::readInt($this->get(4));
|
||||
$this->data["z"] = Utils::readInt($this->get(4));
|
||||
$this->data["case1"] = Utils::readInt($this->get(4));
|
||||
$this->data["case2"] = Utils::readInt($this->get(4));
|
||||
}else{
|
||||
$this->raw .= Utils::writeInt($this->data["x"]);
|
||||
$this->raw .= Utils::writeInt($this->data["y"]);
|
||||
$this->raw .= Utils::writeInt($this->data["z"]);
|
||||
$this->raw .= Utils::writeInt($this->data["case1"]);
|
||||
$this->raw .= Utils::writeInt($this->data["case2"]);
|
||||
}
|
||||
break;
|
||||
case MC_ENTITY_EVENT:
|
||||
if($this->c === false){
|
||||
$this->data["eid"] = Utils::readInt($this->get(4));
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ define("MC_UPDATE_BLOCK", 0x97);
|
|||
define("MC_ADD_PAINTING", 0x98);
|
||||
define("MC_EXPLOSION", 0x99);
|
||||
define("MC_LEVEL_EVENT", 0x9a);
|
||||
//define("MC_TILE_EVENT", 0x9b);
|
||||
define("MC_TILE_EVENT", 0x9b);
|
||||
define("MC_ENTITY_EVENT", 0x9c);
|
||||
define("MC_REQUEST_CHUNK", 0x9d);
|
||||
define("MC_CHUNK_DATA", 0x9e);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue