error corrections

master
ademant 2018-10-21 13:30:57 +02:00
parent 30d44c9f33
commit 8c58ab9604
3 changed files with 7 additions and 7 deletions

View File

@ -5,8 +5,8 @@ beetroot,1,,10,5,2,2,,1,,1,,,,,,,,,,,,3,35,,30,,,,9,,,,,,,,,,
blackberry,1,,10,4,2,1,,,,,1,,,,,,,,,,,3,,90,20,,,,9,,,,,,,,,,
blueberry,1,,10,4,2,1,,,,,1,,,,,,,,,,,3,45,90,40,90,,,9,,,,,,,,,,
carrot,1,,10,8,2,2,,1,,1,,,,,,,,,2,,,3,45,,30,90,,,8,,,,,,,,,,farming:carrot_baked
chili,1,,20,8,2,1,,,,,1,,,,,,,,,,,3,45,90,,,50,1000,,,,,,,,,,,
coffee,1,,20,5,2,1,,,,,1,,,,,,,1,4,,,3,50,120,50,150,50,1000,12,,,,,,,,,,
chili,1,,20,8,2,1,,,,,1,,,,,,,,,,,3,45,90,,,,1000,,,,,,,,,,,
coffee,1,,20,5,2,1,,,,,1,,,,,,,1,4,,,3,50,120,50,150,,1000,12,,,,,,,,,,
corn,1,,10,8,2,2,,,,1,,1,,,,,,,4,1,,3,35,90,30,,,,,,,,,,,,,,farming:corn_cob
cotton,1,,10,8,2,,,,1,1,,1,,,,1,,,,,,3,45,90,20,,,,12,,,,,,,,,,
culturewheat,1,,100,4,3,,1,,1,1,,1,,,,1,,1,3,,1,3,25,,40,,,,10,,,,,100,farming:straw,,,farming:flour,
@ -21,7 +21,7 @@ raspberry,1,,10,4,2,1,,,,,1,,,,,,,,,,,3,,,,,,,9,,,,,,,,,,
rhubarb,1,,10,3,2,2,,1,,1,,,,,,,,,,,,3,,,,,,,9,,,,,,,,,,
spelt,1,,10,7,2,,,,1,1,,1,,,,1,,,3,,1,3,,,,,,,,,,,,,farming:straw,,,farming:flour,
strawberry,1,,10,4,2,1,,,,,1,,,,,,,,,,,3,,,,,,,9,,,,,,,,,,
tea,,,20,5,2,1,,,,,1,,,1,,,,,4,,,3,30,70,30,70,50,,,,,,,,,,,,
tea,,,20,5,2,1,,,,,1,,,1,,,,,4,,,3,30,70,30,70,,,,,,,,,,,,,
tobaco,1,,10,8,2,,,,1,1,1,,2,,,,,,4,,,3,,,,,,,,,,,,,,,,,
tomato,,,10,8,2,1,,,1,1,1,1,,,,,1,,,,,3,,,,,,,,,,,,,,,,,
nettle,1,,10,5,2,1,,,1,,,,1,,,1,,,2,,,3,5,150,,100,,2000,6,,,,,8,farming:nettle_fibre,,,,

View File

@ -294,10 +294,10 @@ farming.register_steps = function(sdef)
node_def.drop_item = sdef.seed_name
-- if plant has to be harvested, drop harvest instead
if has_harvest then
node_def.drop_item = sdef.step_name
else
if sdef.seed_drop ~= nil then
node_def.drop_item = sdef.seed_drop
else
node_def.drop_item = sdef.step_name
end
end
local lbm_nodes = {sdef.seed_name}
@ -330,7 +330,7 @@ farming.register_steps = function(sdef)
base_rarity = 8 - (i - 1) * 7 / (sdef.steps - 1)
end
ndef.drop={items={{items={ndef.drop_item}}}}
if use_trellis then
if sdef.groups["use_trellis"] then
table.insert(ndef.drop.items,1,{items={"farming:trellis"}})
end
local base_rarity = 1
@ -601,7 +601,7 @@ farming.step_on_punch = function(pos, node, puncher, pointed_thing)
placenode.param2 = def.place_param2
end
minetest.swap_node(pos, placenode)
puncher:get_inventory():add_item('main',def.seed_name)
puncher:get_inventory():add_item('main',def.drop_item)
-- getting one more when using billhook
local tool_def = puncher:get_wielded_item():get_definition()
if tool_def.groups["billhook"] then

Binary file not shown.

After

Width:  |  Height:  |  Size: 204 B