From 9bec04ab1e357c7ccbf1208153cd1b0a0c53be1d Mon Sep 17 00:00:00 2001 From: LogicParrot Date: Wed, 13 Apr 2016 15:15:12 +0300 Subject: Fix occasional freeze bug --- src/Entities/Player.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/Entities/Player.h') diff --git a/src/Entities/Player.h b/src/Entities/Player.h index f04bcdd39..2f1e892dc 100644 --- a/src/Entities/Player.h +++ b/src/Entities/Player.h @@ -693,11 +693,13 @@ protected: /** Tosses a list of items. */ void TossItems(const cItems & a_Items); - /** Pins the player to a_Location until Unfreeze() is called. - If ManuallyFrozen is false, the player will unfreeze when the chunk is loaded. */ - void FreezeInternal(const Vector3d & a_Location, bool a_ManuallyFrozen); - /** Returns the filename for the player data based on the UUID given. This can be used both for online and offline UUIDs. */ AString GetUUIDFileName(const AString & a_UUID); + +private: + + /** Pins the player to a_Location until Unfreeze() is called. + If ManuallyFrozen is false, the player will unfreeze when the chunk is loaded. */ + void FreezeInternal(const Vector3d & a_Location, bool a_ManuallyFrozen); } ; // tolua_export -- cgit v1.2.3