From a8650a241cc1aaeb35877ae45b290fae97195754 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Tue, 14 Mar 2017 17:37:29 +0000 Subject: [PATCH] Removed @deprecated warning from PlayerInventory->setHotbarSlotIndex() Core uses it, it's just that plugins shouldn't. --- src/pocketmine/inventory/PlayerInventory.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pocketmine/inventory/PlayerInventory.php b/src/pocketmine/inventory/PlayerInventory.php index c36ebd2d2..2e1723304 100644 --- a/src/pocketmine/inventory/PlayerInventory.php +++ b/src/pocketmine/inventory/PlayerInventory.php @@ -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