From 12d1795b55ddccc4bc0846b6e19504bc8cfa1dc5 Mon Sep 17 00:00:00 2001 From: rnd Date: Mon, 1 Jun 2015 18:12:26 +0200 Subject: [PATCH] .. --- mods/mymod/acid.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/mymod/acid.lua b/mods/mymod/acid.lua index c63e1ec..b1a7ad9 100644 --- a/mods/mymod/acid.lua +++ b/mods/mymod/acid.lua @@ -140,8 +140,9 @@ local function overwrite(name) if not protector.can_dig(5,pos,digger) then return end local name = digger:get_player_name(); if name == nil then return end if playerdata then + local dig = 0; if playerdata[name] then - local dig = playerdata[name].dig/5+200 + dig = playerdata[name].dig/5+200 end if pos.y<-dig then minetest.set_node(pos, {name="default:stone"})