fix bug in mcl_vegan_utils.
This commit is contained in:
parent
b0e1280566
commit
936ca6f558
2 changed files with 9 additions and 6 deletions
|
@ -1,3 +1,4 @@
|
|||
mcl_core
|
||||
mcl_farming
|
||||
mcl_sounds
|
||||
mcl_flowers
|
||||
|
|
|
@ -19,8 +19,8 @@ function mcl_vegan.register_basic_plant (own_mod_name, base_name, def)
|
|||
local seed = own_mod_name .. ":" .. def.seed
|
||||
local descriptions = def.descriptions
|
||||
|
||||
-- copied from wheat
|
||||
if def.crop_heights == nil then
|
||||
-- copied from wheat
|
||||
def.crop_heights = {
|
||||
-5/16, -2/16, 0, 3/16,
|
||||
5/16, 6/16, 7/16, 8/16,
|
||||
|
@ -88,12 +88,14 @@ function mcl_vegan.register_basic_plant (own_mod_name, base_name, def)
|
|||
if can_forage then
|
||||
for _, grass in pairs(grasses) do
|
||||
local drop = mcl_vegan.get_drop(grass)
|
||||
drop.max_items = drop.max_items + 1
|
||||
if drop then
|
||||
drop.max_items = drop.max_items + 1
|
||||
|
||||
mcl_vegan.add_drop(grass, {
|
||||
items = { seed },
|
||||
rarity = 8,
|
||||
})
|
||||
mcl_vegan.add_drop(grass, {
|
||||
items = { seed },
|
||||
rarity = 8,
|
||||
})
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue