correção de erro no find target

master
BrunoMine 2019-09-21 18:18:50 -03:00
parent 19b2787ad0
commit fb787453ea
2 changed files with 2 additions and 2 deletions

View File

@ -165,7 +165,7 @@ minetest.register_node("taverna_barbara:piso_barman", {
})
local verificar_barman = function(pos)
if table.maxn(creatures.find_target(self.object:getpos(), 10, {
if table.maxn(creatures.find_target(pos, 10, {
search_type = "mate",
mob_name = "taverna_barbara:barman",
xray = true,

View File

@ -246,7 +246,7 @@ minetest.register_node("taverna_barbara:bau_trambiqueiro", {
})
local verificar_trambiqueiro = function(pos)
if table.maxn(creatures.find_target(self.object:getpos(), 10, {
if table.maxn(creatures.find_target(pos, 10, {
search_type = "mate",
mob_name = "taverna_barbara:trambiqueiro",
xray = true,