mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
Conver High ItemID to Old ItemId
This commit is contained in:
parent
6b7563d8ea
commit
fd23ba04ec
9 changed files with 36 additions and 10 deletions
|
|
@ -150,8 +150,8 @@ abstract class RakNetDataPacket extends stdClass{
|
|||
return ord($this->get(1));
|
||||
}
|
||||
|
||||
protected function putSlot(Item $item){
|
||||
$this->putShort($item->getID());
|
||||
protected function putSlot(Int $protocolId, Item $item){
|
||||
$this->putShort(BlockAPI::convertHighItemIdsToOldItemIds($protocolId, $item->getID()));
|
||||
$this->putByte($item->count);
|
||||
$this->putShort($item->getMetadata());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue