From ac63775297cffb56b05702c0a3c6575f1bcd7d3b Mon Sep 17 00:00:00 2001 From: "lapayo94@gmail.com" Date: Sun, 1 Jan 2012 18:45:28 +0000 Subject: CreativeInventory Update - Fixed various problems with the new creative inventory (Crafting, furnace, etc) - Creative inventory will now be saved to disk, so you keep your creative inventory also for the next sessions git-svn-id: http://mc-server.googlecode.com/svn/trunk@162 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cPlayer.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source/cPlayer.h') diff --git a/source/cPlayer.h b/source/cPlayer.h index d2d1e91d7..b3344c410 100644 --- a/source/cPlayer.h +++ b/source/cPlayer.h @@ -31,8 +31,7 @@ public: Vector3d GetEyePosition(); //tolua_export inline bool GetFlying() { return m_bTouchGround; } //tolua_export inline const double & GetStance() { return m_Stance; } //tolua_export - cInventory & GetInventory() { if(GetGameMode() == 0) return *m_Inventory; else return *m_CreativeInventory; } //tolua_export - cSurvivalInventory & GetSurvivalInventory() { return *m_Inventory; } //tolua_export + inline cInventory & GetInventory() { if(GetGameMode() == 0) return *m_Inventory; else return *m_CreativeInventory; } //tolua_export virtual void TeleportTo( const double & a_PosX, const double & a_PosY, const double & a_PosZ ); //tolua_export -- cgit v1.2.3