mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-07 16:48:40 +00:00
Add minetest.unregister_item and minetest.register_alias_force
This commit is contained in:
parent
7eacdc7bb8
commit
aa33166386
8 changed files with 121 additions and 3 deletions
|
@ -144,6 +144,7 @@ public:
|
|||
virtual void clear()=0;
|
||||
// Register item definition
|
||||
virtual void registerItem(const ItemDefinition &def)=0;
|
||||
virtual void unregisterItem(const std::string &name)=0;
|
||||
// Set an alias so that items named <name> will load as <convert_to>.
|
||||
// Alias is not set if <name> has already been defined.
|
||||
// Alias will be removed if <name> is defined at a later point of time.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue