summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon <brandon@bremaweb.com>2013-06-20 11:03:45 -0500
committerBrandon <brandon@bremaweb.com>2013-06-20 11:03:45 -0500
commit33507be85a2b84b0c444a89fc134dd78d65ea2f3 (patch)
treef859e9ccf12bb42afe35c8a52060e0690204dd93
parent214e4c9934dd062f1323337bf7913340bc9b6a5a (diff)
fix hud drawing issue
-rw-r--r--init.lua4
1 files changed, 2 insertions, 2 deletions
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",