Add files via upload

master
AiTechEye 2018-12-02 11:57:44 +01:00 committed by GitHub
parent 3bd23e62e6
commit 0bf3b74c6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -156,8 +156,6 @@ minetest.register_node("tempsurvive:stove", {
minetest.get_node_timer(pos):start(math.abs(time))
end,
on_construct=function(pos)
local meta = minetest.get_meta(pos)
local inv = meta:get_inventory()
meta:set_int("power", 0)
@ -253,6 +251,7 @@ minetest.register_node("tempsurvive:keepable_fire", {
walkable=false,
sunlight_propagetes=true,
damage_per_secound=5,
floodable=true,
drop="",
on_timer = function (pos, elapsed)
local meta = minetest.get_meta(pos)
@ -276,11 +275,11 @@ minetest.register_node("tempsurvive:keepable_fire", {
local time=minetest.get_craft_result({method="fuel", width=1, items={stack:get_name()}}).time
if time==0 then time=minetest.get_item_group(stack:get_name(),"flammable") end
if time==0 then time=minetest.get_item_group(stack:get_name(),"igniter") end
if time==0 and stack:get_count()>0 and meta:get_int("slot")~=slot and meta:get_int("power")>0 then
if time==0 and stack:get_count()>0 and meta:get_int("temp")>15 then
time=1
meta:set_int("power",meta:get_int("power")/10)
end
meta:set_int("power",meta:get_int("power")+time)
stack:set_count(stack:get_count()-1)
inv:set_stack("burning",slot,stack)