tweak recipe for wooden bucket, nil check for refile_plant inv

This commit is contained in:
tenplus1 2022-06-03 07:57:39 +01:00
parent 7f9727cebc
commit ba0ef644a0
2 changed files with 6 additions and 2 deletions

View File

@ -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"}
}
})

View File

@ -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