From 21068011c6d8a4794eec86794d6b9612a265f03a Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Fri, 2 Oct 2020 14:22:17 +0100 Subject: Remove SetProperty(...cPlayer) Enchantment table, anvil windows are already opened one per-player. --- src/UI/Window.h | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/UI/Window.h') diff --git a/src/UI/Window.h b/src/UI/Window.h index 65fbc3756..46935acef 100644 --- a/src/UI/Window.h +++ b/src/UI/Window.h @@ -142,11 +142,7 @@ public: /** Updates a numerical property associated with the window. Typically used for furnace progressbars. Sends the UpdateWindowProperty packet to all clients of the window */ - virtual void SetProperty(short a_Property, short a_Value); - - /** Updates a numerical property associated with the window. Typically used for furnace progressbars. - Sends the UpdateWindowProperty packet only to the specified player */ - virtual void SetProperty(short a_Property, short a_Value, cPlayer & a_Player); + virtual void SetProperty(size_t a_Property, short a_Value); // tolua_end @@ -179,6 +175,7 @@ public: void SendSlot(cPlayer & a_Player, cSlotArea * a_SlotArea, int a_RelativeSlotNum); protected: + cSlotAreas m_SlotAreas; char m_WindowID; @@ -227,7 +224,3 @@ protected: @param a_LimitItems if false, no checks are performed on a_Item.m_ItemCount. */ int DistributeItemToSlots(cPlayer & a_Player, const cItem & a_Item, int a_NumToEachSlot, const cSlotNums & a_SlotNums, bool a_LimitItems = true); } ; // tolua_export - - - - -- cgit v1.2.3