diff --git a/init.lua b/init.lua index 1e4101e..db44bc1 100644 --- a/init.lua +++ b/init.lua @@ -675,7 +675,7 @@ local function get_desc(item) local desc = def.description if true_str(desc) then - desc = desc:trim():match("[^\n]*") + desc = desc:trim():match("[^\n]*"):gsub("_", " ") if not find(desc, "%u") then desc = toupper(desc) @@ -1402,7 +1402,7 @@ local function get_output_fs(fs, data, rcp, is_recipe, shapeless, right, btn_siz fs("animated_image", X + 0.05, Y, ITEM_BTN_SIZE, ITEM_BTN_SIZE, PNG.fire_anim, 8, 180) else local item = rcp.output - item = ItemStack(clean_name(item)) + item = ItemStack(clean_name(item)) local name = item:get_name() local count = item:get_count() local bt_s = ITEM_BTN_SIZE * 1.2 diff --git a/test_custom_recipes.lua b/test_custom_recipes.lua index 68c2f41..9489f52 100644 --- a/test_custom_recipes.lua +++ b/test_custom_recipes.lua @@ -1,6 +1,15 @@ +minetest.register_craft({ + output = minetest.itemstring_with_palette("default:wood", 3), + type = "shapeless", + recipe = { + "default:wood", + "dye:red", + }, +}) + i3.register_craft({ result = "default:ladder_wood", - items = {"default:copper_ingot 7, default:tin_ingot", "default:steel_ingot 2"}, + items = {"default:copper_ingot 7, default:tin_ingot, default:steel_ingot 2"}, }) i3.register_craft({ diff --git a/textures/i3_arrow.png b/textures/i3_arrow.png index 42bba58..df1bbdb 100644 Binary files a/textures/i3_arrow.png and b/textures/i3_arrow.png differ