Removed @deprecated warning from PlayerInventory->setHotbarSlotIndex()

Core uses it, it's just that plugins shouldn't.
This commit is contained in:
Dylan K. Taylor 2017-03-14 17:37:29 +00:00
parent d26713ab59
commit a8650a241c

View File

@ -94,8 +94,10 @@ class PlayerInventory extends BaseInventory{
}
/**
* @internal This method is intended for use in network interaction with clients only.
* @deprecated Do not change hotbar slot mapping with plugins, this will cause myriad client-sided bugs, especially with desktop GUI clients.
* Links a hotbar slot to the specified slot in the main inventory. -1 links to no slot and will clear the hotbar slot.
* This method is intended for use in network interaction with clients only.
*
* NOTE: Do not change hotbar slot mapping with plugins, this will cause myriad client-sided bugs, especially with desktop GUI clients.
*
* @param int $hotbarSlot
* @param int $inventorySlot