master
rnd 2015-06-01 18:12:26 +02:00
parent bcc2960983
commit 12d1795b55
1 changed files with 2 additions and 1 deletions

View File

@ -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"})