summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon <brandon@bremaweb.com>2013-06-20 09:14:11 -0500
committerBrandon <brandon@bremaweb.com>2013-06-20 09:14:11 -0500
commit30954d3e046ea4f074b6c6c4531a7c6b21e10454 (patch)
treeee47ea1c4f0707ef1edf626e8c18984b2c0e7b57
parentceb46b8bf61d0b02a6eb3a12d6f5a255dc1fa247 (diff)
forgot to reset sameowner variable
-rw-r--r--init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index a0e10fa..0d403f1 100644
--- a/init.lua
+++ b/init.lua
@@ -318,10 +318,10 @@ minetest.register_entity("landrush:showarea",{
minetest.register_globalstep(function(dtime)
gstepCount = gstepCount + dtime
if ( gstepCount > 2 ) then
- local sameowner = false
+
for _,player in pairs(minetest.get_connected_players()) do
local name = player:get_player_name()
-
+ local sameowner = false
owner = landrush.get_owner(player:getpos())
if ( playerHudItems[name] ~= nil ) then