mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
parent
c1d03695d4
commit
a9a207685a
@ -594,6 +594,9 @@ int ModApiItemMod::l_register_item_raw(lua_State *L)
|
|||||||
// be done
|
// be done
|
||||||
if (f.name == "ignore")
|
if (f.name == "ignore")
|
||||||
return 0;
|
return 0;
|
||||||
|
// This would break everything
|
||||||
|
if (f.name.empty())
|
||||||
|
throw LuaError("Cannot register node with empty name");
|
||||||
|
|
||||||
content_t id = ndef->set(f.name, f);
|
content_t id = ndef->set(f.name, f);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user