diff --git a/src/pocketmine/network/protocol/DataPacket.php b/src/pocketmine/network/protocol/DataPacket.php index 67773072a..f322d2270 100644 --- a/src/pocketmine/network/protocol/DataPacket.php +++ b/src/pocketmine/network/protocol/DataPacket.php @@ -68,8 +68,8 @@ abstract class DataPacket extends \stdClass{ $this->buffer .= $str; } - protected function getLong($unsigned = false){ - return Binary::readLong($this->get(8), $unsigned); + protected function getLong($signed = true){ + return Binary::readLong($this->get(8), $signed); } protected function putLong($v){ @@ -84,8 +84,8 @@ abstract class DataPacket extends \stdClass{ $this->buffer .= Binary::writeInt($v); } - protected function getShort($unsigned = false){ - return Binary::readShort($this->get(2), $unsigned); + protected function getShort($signed = true){ + return Binary::readShort($this->get(2), $signed); } protected function putShort($v){ @@ -159,7 +159,7 @@ abstract class DataPacket extends \stdClass{ } protected function getString(){ - return $this->get($this->getShort(true)); + return $this->get($this->getShort(false)); } protected function putString($v){ diff --git a/src/raklib b/src/raklib index 9b0c3a587..577c371aa 160000 --- a/src/raklib +++ b/src/raklib @@ -1 +1 @@ -Subproject commit 9b0c3a587251d47cf63dbe0f9432126177b417a5 +Subproject commit 577c371aa07bd2aa3cedc3b7d4bcdc1d54999c70