1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-14 00:55:20 +02:00

Fix core.get_node_or_nil in emerge env

"ignore" does not mean unloaded, we have to properly check it.
This commit is contained in:
sfan5
2024-02-24 09:49:42 +01:00
parent 91ea47fddf
commit e734b3f0d8
3 changed files with 17 additions and 5 deletions

View File

@@ -247,6 +247,9 @@ public:
class ModApiEnvVM : public ModApiEnvBase {
private:
// get_node_or_nil(pos)
static int l_get_node_or_nil(lua_State *L);
// get_node_max_level(pos)
static int l_get_node_max_level(lua_State *L);