Correct errors in search.

This commit is contained in:
Duane Robertson 2016-05-26 00:28:36 -05:00
parent 0285d39793
commit f8678a3d44
11 changed files with 35 additions and 32 deletions

View file

@ -107,9 +107,9 @@ mobs:register_mob("fun_caves:goblin_ice", {
end,
do_custom = function(self)
fun_caves.search_replace(self.object:getpos(), 5, {"default:torch"}, "air")
fun_caves.search_replace(self.object:getpos(), fun_caves.goblin_torch_freq, {"default:torch"}, "air")
--fun_caves.search_replace(self.object:getpos(), 20, {"default:stone"}, "default:mossycobble")
fun_caves.search_replace(self.object:getpos(), 500, {"default:ice"}, "fun_caves:ice_trap")
fun_caves.search_replace(self.object:getpos(), fun_caves.goblin_trap_freq, {"default:ice"}, "fun_caves:ice_trap")
fun_caves.surface_damage(self, true)
end,