reliable or verifyable. Compatible forks will have a different name and
version entirely. To check for the presence of engine features, test
whether the functions exported by the wanted features exist. For example:
- `if minetest.nodeupdate then ... end`.
+ `if minetest.check_for_falling then ... end`.
### Logging
* `minetest.debug(...)`
reliable or verifyable. Compatible forks will have a different name and
version entirely. To check for the presence of engine features, test
whether the functions exported by the wanted features exist. For example:
- `if minetest.nodeupdate then ... end`.
+ `if minetest.check_for_falling then ... end`.
### Logging
* `minetest.debug(...)`
PCALL_RES(lua_pcall(L, 4, 0, error_handler));
lua_pop(L, 1); // Pop error handler
}
-
-void ScriptApiNode::node_falling_update(v3s16 p)
-{
- SCRIPTAPI_PRECHECKHEADER
-
- int error_handler = PUSH_ERROR_HANDLER(L);
-
- lua_getglobal(L, "nodeupdate");
- push_v3s16(L, p);
- PCALL_RES(lua_pcall(L, 1, 0, error_handler));
- lua_pop(L, 1); // Pop error handler
-}
-
-void ScriptApiNode::node_falling_update_single(v3s16 p)
-{
- SCRIPTAPI_PRECHECKHEADER
-
- int error_handler = PUSH_ERROR_HANDLER(L);
-
- lua_getglobal(L, "nodeupdate_single");
- push_v3s16(L, p);
- PCALL_RES(lua_pcall(L, 1, 0, error_handler));
- lua_pop(L, 1); // Pop error handler
-}
const std::string &formname,
const StringMap &fields,
ServerActiveObject *sender);
- void node_falling_update(v3s16 p);
- void node_falling_update_single(v3s16 p);
public:
static struct EnumString es_DrawType[];
static struct EnumString es_ContentParamType[];