From e6aa8f999794c53191019b8e62e91e0e97ad523e Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sun, 26 Apr 2020 15:41:39 +0100 Subject: [PATCH] Fix a few descriptions --- crops/corn.lua | 1 + crops/pepper.lua | 2 +- crops/pumpkin.lua | 1 + crops/ryeoatrice.lua | 4 ++-- food.lua | 4 ++-- hoes.lua | 2 +- init.lua | 3 ++- 7 files changed, 10 insertions(+), 7 deletions(-) diff --git a/crops/corn.lua b/crops/corn.lua index eef547a..8e39fb7 100644 --- a/crops/corn.lua +++ b/crops/corn.lua @@ -74,6 +74,7 @@ minetest.register_craft( { recipe = { { "vessels:glass_bottle", "group:food_corn", "group:food_corn"}, { "group:food_corn", "group:food_corn", "group:food_corn"}, + { "group:food_corn", "group:food_corn", "group:food_corn"}, } }) diff --git a/crops/pepper.lua b/crops/pepper.lua index 6770888..ea07b4e 100644 --- a/crops/pepper.lua +++ b/crops/pepper.lua @@ -33,7 +33,7 @@ minetest.register_craft({ -- ground pepper minetest.register_node("farming:pepper_ground", { - description = ("Ground Pepper"), + description = S("Ground Pepper"), inventory_image = "crops_pepper_ground.png", wield_image = "crops_pepper_ground.png", drawtype = "plantlike", diff --git a/crops/pumpkin.lua b/crops/pumpkin.lua index e876934..57f8a14 100644 --- a/crops/pumpkin.lua +++ b/crops/pumpkin.lua @@ -88,6 +88,7 @@ minetest.register_craft({ --- wooden scarecrow base minetest.register_node("farming:scarecrow_bottom", { + description = S("Scarecrow Bottom"), paramtype = "light", sunlight_propagates = true, paramtype2 = "facedir", diff --git a/crops/ryeoatrice.lua b/crops/ryeoatrice.lua index d064626..7686e94 100644 --- a/crops/ryeoatrice.lua +++ b/crops/ryeoatrice.lua @@ -66,14 +66,14 @@ minetest.override_item("farming:rice", { }) minetest.register_craftitem("farming:rice_bread", { - description = "Rice Bread", + description = S("Rice Bread"), inventory_image = "farming_rice_bread.png", on_use = minetest.item_eat(5), groups = {food_rice_bread = 1, flammable = 2}, }) minetest.register_craftitem("farming:rice_flour", { - description = "Rice Flour", + description = S("Rice Flour"), inventory_image = "farming_rice_flour.png", groups = {food_rice_flour = 1, flammable = 1}, }) diff --git a/food.lua b/food.lua index 00f3267..33106f0 100644 --- a/food.lua +++ b/food.lua @@ -20,7 +20,7 @@ minetest.register_craft({ --= Salt minetest.register_node("farming:salt", { - description = ("Salt"), + description = S("Salt"), inventory_image = "farming_salt.png", wield_image = "farming_salt.png", drawtype = "plantlike", @@ -47,7 +47,7 @@ minetest.register_craft({ --= Rose Water minetest.register_node("farming:rose_water", { - description = ("Rose Water"), + description = S("Rose Water"), inventory_image = "farming_rose_water.png", wield_image = "farming_rose_water.png", drawtype = "plantlike", diff --git a/hoes.lua b/hoes.lua index fc7823d..6c9beeb 100644 --- a/hoes.lua +++ b/hoes.lua @@ -350,7 +350,7 @@ farming.add_to_scythe_not_drops = function(item) end minetest.register_tool("farming:scythe_mithril", { - description = S("Mithril Scythe (Use to harvest and replant crops)"), + description = S("Mithril Scythe (Right-click to harvest and replant crops)"), inventory_image = "farming_scythe_mithril.png", sound = {breaks = "default_tool_breaks"}, diff --git a/init.lua b/init.lua index 2cb5544..8e00279 100644 --- a/init.lua +++ b/init.lua @@ -79,7 +79,8 @@ end -- Growth Logic -local STAGE_LENGTH_AVG = tonumber(minetest.settings:get("farming_stage_length")) or 160 +local STAGE_LENGTH_AVG = tonumber( + minetest.settings:get("farming_stage_length")) or 160 local STAGE_LENGTH_DEV = STAGE_LENGTH_AVG / 6