mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-27 19:35:24 +01:00
Add minetest.unregister_item and minetest.register_alias_force
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user