mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Correct teleporting with the new player list handling
This commit is contained in:
parent
7102787aa9
commit
bf1b00f0e6
4 changed files with 42 additions and 37 deletions
|
|
@ -266,11 +266,11 @@ class CustomPacketHandler{
|
|||
break;
|
||||
case MC_REMOVE_PLAYER:
|
||||
if($this->c === false){
|
||||
$this->data["clientID"] = Utils::readLong($this->get(8));
|
||||
$this->data["eid"] = Utils::readInt($this->get(4));
|
||||
$this->data["clientID"] = Utils::readLong($this->get(8));
|
||||
}else{
|
||||
$this->raw .= Utils::writeLong($this->data["clientID"]);
|
||||
$this->raw .= Utils::writeInt($this->data["eid"]);
|
||||
$this->raw .= Utils::writeLong($this->data["clientID"]);
|
||||
}
|
||||
break;
|
||||
case MC_ADD_ENTITY:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue