mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Fixed block breaking Y position
This commit is contained in:
parent
c63240c7a8
commit
48a331cff1
@ -260,15 +260,15 @@ class CustomPacketHandler{
|
|||||||
break;
|
break;
|
||||||
case MC_REMOVE_BLOCK:
|
case MC_REMOVE_BLOCK:
|
||||||
if($this->c === false){
|
if($this->c === false){
|
||||||
|
$this->data["eid"] = Utils::readInt($this->get(4));
|
||||||
$this->data["x"] = Utils::readInt($this->get(4));
|
$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["z"] = Utils::readInt($this->get(4));
|
||||||
$this->data["face"] = ord($this->get(1));
|
$this->data["y"] = ord($this->get(1));
|
||||||
}else{
|
}else{
|
||||||
|
$this->raw .= Utils::writeInt($this->data["eid"]);
|
||||||
$this->raw .= Utils::writeInt($this->data["x"]);
|
$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["z"]);
|
||||||
$this->raw .= chr($this->data["face"]);
|
$this->raw .= chr($this->data["y"]);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case MC_UPDATE_BLOCK:
|
case MC_UPDATE_BLOCK:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user