diff --git a/mods/fake_fire/init.lua b/mods/fake_fire/init.lua index 86f2048..b8b8e7c 100644 --- a/mods/fake_fire/init.lua +++ b/mods/fake_fire/init.lua @@ -1,5 +1,5 @@ minetest.register_node("fake_fire:fake_fire", { - description = "fake_fire", + description = "Fake Fire", tiles = { {name="fake_fire_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=1.5}}, }, @@ -23,7 +23,7 @@ minetest.register_node("fake_fire:fake_fire", { end }) minetest.register_craftitem("fake_fire:old_flint_and_steel", { - description = "Never ending flint and steel", + description = "Never ending Flint and Steel", inventory_image = "flint_and_steel.png", stack_max = 1, liquids_pointable = false, @@ -57,7 +57,7 @@ end -- the flint and steel -- minetest.register_tool("fake_fire:flint_and_steel", { - description = "Flint and steel", + description = "Flint and Steel", inventory_image = "flint_and_steel.png", liquids_pointable = false, stack_max = 1, diff --git a/mods/minetest-mod-mesecons/mesecons_lightstone/init.lua b/mods/minetest-mod-mesecons/mesecons_lightstone/init.lua index edb400e..b0c978f 100644 --- a/mods/minetest-mod-mesecons/mesecons_lightstone/init.lua +++ b/mods/minetest-mod-mesecons/mesecons_lightstone/init.lua @@ -14,11 +14,15 @@ local lightstone_rules = { {x=0, y=-1, z=0}, } +function firstToUpper(str) + return (str:gsub("^%l", string.upper)) +end + function mesecon.lightstone_add(name, base_item, texture_off, texture_on) minetest.register_node("mesecons_lightstone:lightstone_" .. name .. "_off", { tiles = {texture_off}, groups = {cracky=2, mesecon_effector_off = 1, mesecon = 2}, - description=name.." Lightstone", + description=firstToUpper(name.." Lightstone"), sounds = default.node_sound_stone_defaults(), mesecons = {effector = { rules = lightstone_rules,