From c4563b18534898440adac2234788494cd0a107a1 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Tue, 2 Dec 2014 18:56:24 +0100 Subject: [PATCH] Removed old calls to signed I/O --- src/shoghicp/BigBrother/network/Packet.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/shoghicp/BigBrother/network/Packet.php b/src/shoghicp/BigBrother/network/Packet.php index 9a534571..a5e6a717 100644 --- a/src/shoghicp/BigBrother/network/Packet.php +++ b/src/shoghicp/BigBrother/network/Packet.php @@ -42,8 +42,8 @@ protected function get($len){ return $buffer; } - protected function getLong($signed = true){ - return Binary::readLong($this->get(8), $signed); + protected function getLong(){ + return Binary::readLong($this->get(8)); } protected function getInt(){ @@ -86,8 +86,8 @@ protected function getSlot(){ return Item::get(Item::AIR, 0, 0); }else{ $count = $this->getByte(); - $damage = $this->getShort(true); - $len = $this->getShort(true); + $damage = $this->getShort(); + $len = $this->getShort(); if($len > 0){ $nbt = $this->get($len); } @@ -106,8 +106,8 @@ protected function putSlot(Item $item){ } } - protected function getShort($signed = true){ - return Binary::readShort($this->get(2), $signed); + protected function getShort(){ + return Binary::readShort($this->get(2)); } protected function getTriad(){