mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Add minetest.get_server_uptime() function to Lua API (#4702)
Add minetest.get_server_uptime() function to Lua API
This commit is contained in:
@@ -216,6 +216,7 @@ public:
|
||||
|
||||
// Connection must be locked when called
|
||||
std::wstring getStatusString();
|
||||
inline double getUptime() const { return m_uptime.m_value; }
|
||||
|
||||
// read shutdown state
|
||||
inline bool getShutdownRequested() const { return m_shutdown_requested; }
|
||||
|
Reference in New Issue
Block a user