diff --git a/init.lua b/init.lua index d52f104..84dc6d0 100644 --- a/init.lua +++ b/init.lua @@ -1,5 +1,5 @@ -- VARIABLES -new_campfire_cooking = 1; -- nil - can`t cooked, 1 - can cooked +new_campfire_cooking = 1; -- nil - not cooked, 1 - cooked new_campfire_limit = 1; -- nil - unlimited campfire, 1 - limited new_campfire_ttl = 30; -- Time in sec new_campfire_stick_time = new_campfire_ttl/2; -- How long does the stick increase. In sec. @@ -66,7 +66,7 @@ local function fire_particles_on(pos) -- 3 layers of fire maxacc = {x= 0, y= 1, z= 0}, minexptime = 0.6, maxexptime = 0.8, - minsize = 1, + minsize = 2, maxsize = 4, collisiondetection = true, vertical = true, @@ -355,7 +355,7 @@ minetest.register_abm({ end if new_campfire_cooking then - if meta:get_int('cooked_cur_time') < meta:get_int('cooked_time') then + if meta:get_int('cooked_cur_time') <= meta:get_int('cooked_time') then meta:set_int('cooked_cur_time', meta:get_int('cooked_cur_time') + 1); else meta:set_int('cooked_time', 0); diff --git a/locale/ru.po b/locale/ru.po index 68e9b62..7f66f76 100644 --- a/locale/ru.po +++ b/locale/ru.po @@ -23,7 +23,7 @@ msgstr "Горящий костер" #: init.lua:129 msgid "Cooking" -msgstr "Приготовление еды" +msgstr "Приготовление" #: init.lua:193 init.lua:211 msgid "Fireplace" diff --git a/locale/ua.po b/locale/ua.po index c7033c8..ffcf5d0 100644 --- a/locale/ua.po +++ b/locale/ua.po @@ -23,7 +23,7 @@ msgstr "Палаюче багаття" #: init.lua:129 msgid "Cooking" -msgstr "Готування їжи" +msgstr "Готування" #: init.lua:193 init.lua:211 msgid "Fireplace"