1
0
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:
paly2
2016-07-10 15:15:43 +02:00
committed by kwolekr
parent 7eacdc7bb8
commit aa33166386
8 changed files with 121 additions and 3 deletions

View File

@@ -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.