mirror of
https://github.com/sirrobzeroone/elepower.git
synced 2024-12-02 19:43:43 +01:00
Save the player's mouse a little..
This commit is contained in:
parent
8155c42401
commit
b640c54a6a
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user