diff options
author | RealBadAngel <mk@realbadangel.pl> | 2013-07-18 00:51:06 +0200 |
---|---|---|
committer | RealBadAngel <mk@realbadangel.pl> | 2013-07-18 00:51:06 +0200 |
commit | 7633b2b1b750adffbb5ae2e483cc5eed2ec225ef (patch) | |
tree | 0920e878ad59ee29e62b483c56da01b3e4f98321 /unified_inventory/api.lua | |
parent | dfd478b2e8786b98882e09d89139f9eaa9252770 (diff) |
Another try to get rid of default creative without depending on it.
Diffstat (limited to 'unified_inventory/api.lua')
-rw-r--r-- | unified_inventory/api.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/unified_inventory/api.lua b/unified_inventory/api.lua index 5d04d62..c059c87 100644 --- a/unified_inventory/api.lua +++ b/unified_inventory/api.lua @@ -22,7 +22,15 @@ local homepos = {} unified_inventory.home_filename = minetest.get_worldpath()..'/unified_inventory_home' -- Create detached creative inventory after loading all mods +-- Also 2nd attempt to disable default creative mod minetest.after(0.01, function() + + if creative_inventory then + creative_inventory.set_creative_formspec = function(player, start_i, pagenum) + return + end + end + unified_inventory.items_list = {} for name,def in pairs(minetest.registered_items) do if (not def.groups.not_in_creative_inventory or def.groups.not_in_creative_inventory == 0) |