master
BrunoMine 2020-04-10 14:34:08 -03:00
parent 319a7cef5a
commit e10010f8b3
2 changed files with 10 additions and 3 deletions

View File

@ -107,3 +107,10 @@ dofile(modpath.."/estruturas/loja/init.lua")
dofile(modpath.."/estruturas/emporio/init.lua")
dofile(modpath.."/estruturas/taverna/init.lua")
notificar("[OK]!")
-- Hot fix
old_is_protected = minetest.is_protected
function minetest.is_protected(pos, name)
if name == "" then name = "any player" end
return old_is_protected(pos, name)
end

View File

@ -52,8 +52,8 @@ sunos.verif_terreno = function(pos, dist)
end
end
-- Verificar faixa de subsolo considerando 2 faixas
do
-- Verificar faixa de subsolo considerando 2 faixas [TEM ERROS| DIFICIL PREVER TODOS OS BLOCOS ACEITAVEIS]
--[[do
-- Pegar nodes da faixa de terra
local subsolo = minetest.find_nodes_in_area(
{x=pos.x-dist, y=pos.y-2, z=pos.z-dist},
@ -64,7 +64,7 @@ sunos.verif_terreno = function(pos, dist)
if table.maxn(subsolo) < ( ((2*dist+1)^2) * 2) then
return 3
end
end
end]]
-- Retorna sem erros
return 0