mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 17:36:12 +00:00
Move some code around to fix block placing, breaking, and throwing snowballs
This commit is contained in:
@ -27,6 +27,7 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
use pocketmine\network\mcpe\NetworkSession;
|
||||
use pocketmine\network\mcpe\protocol\types\ContainerIds;
|
||||
use pocketmine\utils\Binary;
|
||||
|
||||
class PlayerHotbarPacket extends DataPacket{
|
||||
const NETWORK_ID = ProtocolInfo::PLAYER_HOTBAR_PACKET;
|
||||
@ -43,7 +44,7 @@ class PlayerHotbarPacket extends DataPacket{
|
||||
$this->windowId = $this->getByte();
|
||||
$count = $this->getUnsignedVarInt();
|
||||
for($i = 0; $i < $count; ++$i){
|
||||
$this->slots[$i] = $this->getUnsignedVarInt();
|
||||
$this->slots[$i] = Binary::signInt($this->getUnsignedVarInt());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user