summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorBrandon <brandon@bremaweb.com>2013-07-02 11:43:17 -0500
committerBrandon <brandon@bremaweb.com>2013-07-02 11:43:17 -0500
commitf1ef00552933aa90b1499d2ecc7ff4d4b7c1f6af (patch)
tree7d46558f8b1b7e2e11bf2ea2fc51a8c0a31bf674 /init.lua
parent5f2172a2c9ec7de6ef8824f53b3a0f482ab4699f (diff)
fix bug where ghoststones would cause protection warnings
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 6d9378a..4dd5d92 100644
--- a/init.lua
+++ b/init.lua
@@ -162,7 +162,7 @@ landrush.default_dig = minetest.node_dig
-- Redefined Lua:
function minetest.node_dig(pos, node, digger)
local player = digger:get_player_name()
- if landrush.can_interact(player, pos) then
+ if landrush.can_interact(player, pos) or player == "" then
landrush.default_dig(pos, node, digger)
else
local owner = landrush.get_owner(pos)