mirror of
https://github.com/minetest-mods/technic.git
synced 2024-11-14 14:30:44 +01:00
proper overload
This commit is contained in:
parent
5bc1519766
commit
e7330172cc
|
@ -228,8 +228,8 @@ minetest.register_chatcommand("powerctrl", {
|
||||||
})
|
})
|
||||||
|
|
||||||
local check_timer = function(pos, meta, diff)
|
local check_timer = function(pos, meta, diff)
|
||||||
if diff > 400000 then
|
if diff > 500000 then
|
||||||
minetest.log("warn", "[technic] disabling switching station @ " .. minetest.pos_to_string(pos))
|
minetest.log("warning", "[technic] disabling switching station @ " .. minetest.pos_to_string(pos))
|
||||||
meta:set_int("overload", 5)
|
meta:set_int("overload", 5)
|
||||||
meta:set_int("active", 0)
|
meta:set_int("active", 0)
|
||||||
meta:set_string("infotext", "Overload detected!")
|
meta:set_string("infotext", "Overload detected!")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user