From 1aebcea095e92572a39cb6555cba8517234b156c Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Wed, 15 Feb 2012 14:22:44 +0000 Subject: Restored chest and furnace functionality as it was (it's basically working but joined chests show single-chest window) git-svn-id: http://mc-server.googlecode.com/svn/trunk@263 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cChestEntity.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/cChestEntity.h') diff --git a/source/cChestEntity.h b/source/cChestEntity.h index 6d26d069f..d3d98739b 100644 --- a/source/cChestEntity.h +++ b/source/cChestEntity.h @@ -44,14 +44,14 @@ public: void SendTo( cClientHandle* a_Client, cServer* a_Server ); - virtual void UsedBy( cPlayer & a_Player ); + virtual void UsedBy( cPlayer * a_Player ) override; cChestEntity *GetJoinedChest() { return m_JoinedChest; } void SetJoinedChest(cChestEntity *a_Chest) { m_JoinedChest = a_Chest; } void RemoveJoinedChest(cChestEntity *a_Chest) { if (m_JoinedChest && m_JoinedChest == a_Chest) { m_JoinedChest = NULL; m_TopChest = false; } } int GetChestHeight() { return ((m_JoinedChest) ? c_ChestHeight * 2 : c_ChestHeight); } - cItem *GetContents(bool a_OnlyThis = false); + cItem * GetContents(bool a_OnlyThis = false); static const int c_ChestWidth = 9; static const int c_ChestHeight = 3; -- cgit v1.2.3