mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 17:15:21 +02:00
scriptapi: Sort out ServerEnvironment / Environment distinction properly
The API implementation is shared between CSM and SSM. Functions should retrieve a plain env when they do not need any server-specific functions.
This commit is contained in:
@@ -334,16 +334,6 @@ public:
|
||||
// This makes stuff happen
|
||||
void step(f32 dtime);
|
||||
|
||||
/*!
|
||||
* Returns false if the given line intersects with a
|
||||
* non-air node, true otherwise.
|
||||
* \param pos1 start of the line
|
||||
* \param pos2 end of the line
|
||||
* \param p output, position of the first non-air node
|
||||
* the line intersects
|
||||
*/
|
||||
bool line_of_sight(v3f pos1, v3f pos2, v3s16 *p = NULL);
|
||||
|
||||
u32 getGameTime() const { return m_game_time; }
|
||||
|
||||
void reportMaxLagEstimate(float f) { m_max_lag_estimate = f; }
|
||||
|
Reference in New Issue
Block a user