1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-24 01:30:38 +01:00

[lavatemple] Reduce Dagger update rate to 1sec

This commit is contained in:
Wouters Dorian 2015-07-31 14:44:29 +02:00
parent 949157e087
commit 1e6b0d0305

View File

@ -1,6 +1,7 @@
-- Based on compass mod by Echo
minetest.register_globalstep(function(dtime)
local function tick()
minetest.after(1, tick)
local players = minetest.get_connected_players()
for i,player in ipairs(players) do
local target = lavatemple.mapgen_data.pos;
@ -27,7 +28,9 @@ minetest.register_globalstep(function(dtime)
end
end
end
end)
end
tick()
local images = {
"lavatemple_dagger_0.png",