Fix incorrect mob owner detection

This commit is contained in:
Wuzzy 2020-12-06 01:58:30 +01:00
parent ec9c338523
commit d69669d149

View File

@ -1667,7 +1667,7 @@ function mobs:capture_mob(self, clicker, chance_hand, chance_net, chance_lasso,
-- Cannot pick up if not owner
if self.owner ~= name and force_take == false then
if self.owner ~= "" and self.owner ~= nil and self.owner ~= name and force_take == false then
minetest.chat_send_player(name, minetest.colorize("#FFFF00", S("@1 is owner!", self.owner)))
return