mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 12:04:46 +00:00
Removed not needed network steps, corrected slot methods
This commit is contained in:
@@ -189,7 +189,7 @@ class Utils{
|
||||
}
|
||||
|
||||
public static function writeSlot(Item $item){
|
||||
return Utils::writeShort($item->getID()).chr($item->count).Utils::writeShort($item->getMetadata());
|
||||
return Utils::writeShort($item->getID()).chr($item->getCount()).Utils::writeShort($item->getMetadata());
|
||||
}
|
||||
|
||||
public static function readSlot($ob){
|
||||
|
Reference in New Issue
Block a user