mirror of
https://github.com/minetest-mods/technic.git
synced 2024-11-17 15:58:37 +01:00
Merge branch 'pandorabox' of github.com:pandorabox-io/technic into pandorabox
This commit is contained in:
commit
5e8c450f0a
@ -41,7 +41,7 @@ minetest.register_globalstep(function(dtime)
|
|||||||
quota_map = {}
|
quota_map = {}
|
||||||
|
|
||||||
-- this many blocks per second
|
-- this many blocks per second
|
||||||
local init_quota = minetest.settings:get("technic.quarry.quota") or 10
|
local init_quota = minetest.settings:get("technic.quarry.quota") or 5
|
||||||
|
|
||||||
local players = minetest.get_connected_players()
|
local players = minetest.get_connected_players()
|
||||||
for i, player in pairs(players) do
|
for i, player in pairs(players) do
|
||||||
|
@ -251,7 +251,7 @@ minetest.register_chatcommand("powerctrl", {
|
|||||||
local check_timer = function(pos, meta, diff)
|
local check_timer = function(pos, meta, diff)
|
||||||
if diff > 500000 then
|
if diff > 500000 then
|
||||||
minetest.log("warning", "[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", 30)
|
meta:set_int("overload", 300)
|
||||||
meta:set_int("active", 0)
|
meta:set_int("active", 0)
|
||||||
meta:set_string("infotext", "Overload detected!")
|
meta:set_string("infotext", "Overload detected!")
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user