mirror of
https://github.com/minetest/minetest.git
synced 2025-07-01 15:40:23 +02:00
[CSM] Add core.get_timeofday & core.get_day_count env calls (#5401)
* [CSM] Add core.get_timeofday & core.get_day_count env calls * [CSM] Add core.get_node_level, core.get_node_max_level, core.find_node_near
This commit is contained in:
@ -177,3 +177,8 @@ bool ScriptApiClient::on_punchnode(v3s16 p, MapNode node)
|
||||
bool blocked = lua_toboolean(L, -1);
|
||||
return blocked;
|
||||
}
|
||||
|
||||
void ScriptApiClient::setEnv(ClientEnvironment *env)
|
||||
{
|
||||
ScriptApiBase::setEnv(env);
|
||||
}
|
||||
|
@ -29,6 +29,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
#include <cstdint>
|
||||
#endif
|
||||
|
||||
class ClientEnvironment;
|
||||
|
||||
class ScriptApiClient: virtual public ScriptApiBase
|
||||
{
|
||||
public:
|
||||
@ -47,5 +49,7 @@ public:
|
||||
|
||||
bool on_dignode(v3s16 p, MapNode node);
|
||||
bool on_punchnode(v3s16 p, MapNode node);
|
||||
|
||||
void setEnv(ClientEnvironment *env);
|
||||
};
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user