Update 'mods/farming/init.lua'

This commit is contained in:
thunderdog1138 2020-07-28 14:42:05 +00:00
parent b5157d08fe
commit c91d1fd36d
1 changed files with 2 additions and 2 deletions

View File

@ -528,7 +528,7 @@ farming.register_plant = function(name, def)
-- Register harvest -- Register harvest
minetest.register_craftitem(":" .. mname .. ":" .. pname, { minetest.register_craftitem(":" .. mname .. ":" .. pname, {
description = pname:gsub("^%l", string.upper), description = pname:gsub("^%l", string.upper),
inventory_image = mname .. "_" .. pname .. ".png", inventory_image = pname .. ".png",
groups = def.groups or {flammable = 2}, groups = def.groups or {flammable = 2},
}) })
@ -569,7 +569,7 @@ farming.register_plant = function(name, def)
minetest.register_node(node_name, { minetest.register_node(node_name, {
drawtype = "plantlike", drawtype = "plantlike",
waving = 1, waving = 1,
tiles = {mname .. "_" .. pname .. "_" .. i .. ".png"}, tiles = {pname .. "_" .. i .. ".png"},
paramtype = "light", paramtype = "light",
paramtype2 = def.paramtype2, paramtype2 = def.paramtype2,
place_param2 = def.place_param2, place_param2 = def.place_param2,