Skip to content

Commit

Permalink
Another try to get rid of default creative without depending on it.
Browse files Browse the repository at this point in the history
  • Loading branch information
RealBadAngel committed Jul 17, 2013
1 parent dfd478b commit 7633b2b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions unified_inventory/api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7633b2b

Please sign in to comment.