From 33507be85a2b84b0c444a89fc134dd78d65ea2f3 Mon Sep 17 00:00:00 2001 From: Brandon Date: Thu, 20 Jun 2013 11:03:45 -0500 Subject: fix hud drawing issue --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index 31cb5ce..f6c36d5 100644 --- a/init.lua +++ b/init.lua @@ -319,7 +319,7 @@ minetest.register_globalstep(function(dtime) gstepCount = gstepCount + dtime if ( gstepCount > 2 ) then - for _,player in pairs(minetest.get_connected_players()) do + for _,player in ipairs(minetest.get_connected_players()) do local name = player:get_player_name() local sameowner = false owner = landrush.get_owner(player:getpos()) @@ -337,7 +337,7 @@ minetest.register_globalstep(function(dtime) end if ( owner ~= nil and sameowner == false ) then - minetest.log('action','Redraw hud for'..name) + minetest.log('action','Redraw hud for '..name) playerHudItems[name] = {hud = player:hud_add({ hud_elem_type = "text", name = "LandOwner", -- cgit v1.2.3