forked from mtcontrib/farming
tweak recipe for wooden bucket, nil check for refile_plant inv
This commit is contained in:
parent
7f9727cebc
commit
ba0ef644a0
3
food.lua
3
food.lua
|
@ -586,7 +586,8 @@ minetest.register_craft({
|
|||
},
|
||||
replacements = {
|
||||
{"cucina_vegana:soy_milk", "vessels:drinking_glass"},
|
||||
{"group:food_milk", "bucket:bucket_empty"},
|
||||
{"mobs:bucket_milk", "bucket:bucket_empty"},
|
||||
{"mobs:wooden_bucket_milk", "wooden_bucket:bucket_wood_empty"},
|
||||
{"farming:vanilla_extract", "vessels:glass_bottle"}
|
||||
}
|
||||
})
|
||||
|
|
5
init.lua
5
init.lua
|
@ -7,7 +7,7 @@
|
|||
|
||||
farming = {
|
||||
mod = "redo",
|
||||
version = "20220309",
|
||||
version = "20220603",
|
||||
path = minetest.get_modpath("farming"),
|
||||
select = {
|
||||
type = "fixed",
|
||||
|
@ -410,6 +410,9 @@ function farming.refill_plant(player, plantname, index)
|
|||
if not player then return end
|
||||
|
||||
local inv = player:get_inventory()
|
||||
|
||||
if not inv then return end
|
||||
|
||||
local old_stack = inv:get_stack("main", index)
|
||||
|
||||
if old_stack:get_name() ~= "" then
|
||||
|
|
Loading…
Reference in New Issue
Block a user