Save the player's mouse a little..

This commit is contained in:
Evert Prants 2018-09-17 21:30:40 +03:00
parent 8155c42401
commit b640c54a6a
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
3 changed files with 8 additions and 4 deletions

View File

@ -146,7 +146,7 @@ ele.register_base_device("elepower_machines:grindstone", {
local sttm = meta:get_int("src_time_max")
if sttm > 0 then
meta:set_int("src_time", stime + 1)
meta:set_int("src_time", stime + 5)
minetest.get_node_timer(pos):start(0.2)
end

View File

@ -333,7 +333,7 @@ local function power_timer(pos)
end
end
meta:set_string("infotext", ("Feeding controller at %s\nLocal %s"):format(
meta:set_string("infotext", ("Connected to controller at %s\nLocal %s"):format(
minetest.pos_to_string(ctrl), ele.capacity_text(localc, locals)))
return refresh
@ -348,7 +348,7 @@ local function port_timer(pos)
return false
end
meta:set_string("infotext", "Feeding controller at " .. minetest.pos_to_string(ctrl))
meta:set_string("infotext", "Connected to controller at " .. minetest.pos_to_string(ctrl))
return false
end

View File

@ -259,7 +259,11 @@ minetest.register_abm({
pw_demand = pw_demand - pw_storage
smeta:set_int("storage", 0)
end
minetest.get_node_timer(spos):start(1.0)
local t = minetest.get_node_timer(spos)
if not t:is_started() then
t:start(1.0)
end
end
end
end,