mirror of
https://codeberg.org/tenplus1/farming.git
synced 2025-06-29 23:01:00 +02:00
tidy code
This commit is contained in:
@ -7,7 +7,7 @@ minetest.register_craftitem("farming:rhubarb", {
|
||||
description = S("Rhubarb"),
|
||||
inventory_image = "farming_rhubarb.png",
|
||||
groups = {
|
||||
compostability = 48, seed = 2, food_rhubarb = 1, flammable = 2
|
||||
compostability = 48, seed = 2, food_rhubarb = 1
|
||||
},
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return farming.place_seed(itemstack, placer, pointed_thing, "farming:rhubarb_1")
|
||||
@ -22,7 +22,7 @@ minetest.register_craftitem("farming:rhubarb_pie", {
|
||||
description = S("Rhubarb Pie"),
|
||||
inventory_image = "farming_rhubarb_pie.png",
|
||||
on_use = minetest.item_eat(6),
|
||||
groups = {compostability = 65, flammable = 2}
|
||||
groups = {compostability = 65}
|
||||
})
|
||||
|
||||
farming.add_eatable("farming:rhubarb_pie", 6)
|
||||
|
Reference in New Issue
Block a user