Check for loot_vaults setting

This commit is contained in:
Raymoo 2016-02-02 15:47:06 -08:00
parent 8bd2fa46ce
commit cbbce3d802

View File

@ -50,6 +50,8 @@ local function payload_to_stack(pl)
end
-- loot.generate_loot(cat, count) generates count ItemStacks from the loot
-- category cat and returns them as a list.
loot.generate_loot = function(category, count)
local cat = get_or_make_cat(category)
local pls = cat:get(count)
@ -64,6 +66,8 @@ end
loot.modpath = modpath
local vaults = minetest.setting_getbool("loot_vaults")
if vaults then dofile(modpath .. "loot_vault.lua") end
dofile(modpath .. "loot_vault.lua")
dofile(modpath .. "default_loot.lua")