summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ClientHandle.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ClientHandle.h b/src/ClientHandle.h
index 082ed2fcc..a0dd4ff7a 100644
--- a/src/ClientHandle.h
+++ b/src/ClientHandle.h
@@ -125,6 +125,9 @@ public:
inline bool IsLoggedIn(void) const { return (m_State >= csAuthenticating); }
+ /** Returns the positions from the last block that the player placed. */
+ const Vector3i & GetLastPlacedBlock(void) const { return m_LastPlacedBlock; } // tolua_export
+
/** Called while the client is being ticked from the world via its cPlayer object */
void Tick(float a_Dt);
@@ -432,6 +435,9 @@ private:
/** Client Settings */
AString m_Locale;
+
+ /** The positions from the last block that the player placed. It's needed to verify the sign text change. */
+ Vector3i m_LastPlacedBlock;
/** The plugin channels that the client has registered. */
cChannels m_PluginChannels;