mirror of
https://codeberg.org/tenplus1/farming.git
synced 2024-12-26 02:30:20 +01:00
fix seed changes when digging grass, force start timer on seed place
This commit is contained in:
parent
f908ccf660
commit
bedade8755
@ -8,7 +8,7 @@ for i = 4, 5 do
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {'farming:seed_wheat'}, rarity = 5},
|
||||
{items = {'farming:seed_oat'},rarity = 10},
|
||||
{items = {'farming:seed_oat'},rarity = 5},
|
||||
{items = {'default:grass_1'}},
|
||||
}
|
||||
},
|
||||
@ -23,7 +23,7 @@ for i = 4, 5 do
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {'farming:seed_barley'}, rarity = 5},
|
||||
{items = {'farming:seed_rye'},rarity = 10},
|
||||
{items = {'farming:seed_rye'},rarity = 5},
|
||||
{items = {'default:dry_grass_1'}},
|
||||
}
|
||||
},
|
||||
@ -39,7 +39,7 @@ minetest.override_item("default:junglegrass", {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {'farming:seed_cotton'}, rarity = 8},
|
||||
{items = {'farming:seed_rice'},rarity = 16},
|
||||
{items = {'farming:seed_rice'},rarity = 8},
|
||||
{items = {'default:junglegrass'}},
|
||||
}
|
||||
},
|
||||
|
7
init.lua
7
init.lua
@ -7,7 +7,7 @@
|
||||
|
||||
farming = {
|
||||
mod = "redo",
|
||||
version = "20180929",
|
||||
version = "20190111",
|
||||
path = minetest.get_modpath("farming"),
|
||||
select = {
|
||||
type = "fixed",
|
||||
@ -457,6 +457,7 @@ function farming.place_seed(itemstack, placer, pointed_thing, plantname)
|
||||
minetest.set_node(pt.above, {name = plantname, param2 = p2})
|
||||
|
||||
--minetest.get_node_timer(pt.above):start(1)
|
||||
farming.handle_growth(pt.above)--, node)
|
||||
|
||||
minetest.sound_play("default_place_node", {pos = pt.above, gain = 1.0})
|
||||
|
||||
@ -630,16 +631,14 @@ local input = io.open(farming.path.."/farming.conf", "r")
|
||||
if input then
|
||||
dofile(farming.path .. "/farming.conf")
|
||||
input:close()
|
||||
input = nil
|
||||
end
|
||||
|
||||
-- load new world-specific settings if found inside world folder
|
||||
local worldpath = minetest.get_worldpath()
|
||||
local input = io.open(worldpath.."/farming.conf", "r")
|
||||
input = io.open(worldpath.."/farming.conf", "r")
|
||||
if input then
|
||||
dofile(worldpath .. "/farming.conf")
|
||||
input:close()
|
||||
input = nil
|
||||
end
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user