From 48a331cff1094c579c5cd366bafc34c352403d8b Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Fri, 7 Dec 2012 20:03:12 +0100 Subject: [PATCH] Fixed block breaking Y position --- classes/CustomPacketHandler.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/classes/CustomPacketHandler.class.php b/classes/CustomPacketHandler.class.php index 862179096..8fca853f7 100644 --- a/classes/CustomPacketHandler.class.php +++ b/classes/CustomPacketHandler.class.php @@ -260,15 +260,15 @@ class CustomPacketHandler{ break; case MC_REMOVE_BLOCK: if($this->c === false){ + $this->data["eid"] = 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["face"] = ord($this->get(1)); + $this->data["y"] = ord($this->get(1)); }else{ + $this->raw .= Utils::writeInt($this->data["eid"]); $this->raw .= Utils::writeInt($this->data["x"]); - $this->raw .= Utils::writeInt($this->data["y"]); $this->raw .= Utils::writeInt($this->data["z"]); - $this->raw .= chr($this->data["face"]); + $this->raw .= chr($this->data["y"]); } break; case MC_UPDATE_BLOCK: