issue orders if holding mob tamer and is owner

This commit is contained in:
Tai @ Flex 2016-08-22 04:00:56 +01:00
parent c2d01f7534
commit bad1ca2750

View File

@ -81,7 +81,7 @@ function captivate(mobname,modset)
if rc_func then if rc_func then
--rc_func(self,clicker) --rc_func(self,clicker)
end end
if clicker:get_wielded_item():get_name() == "vivarium:mobtamer" then if clicker:get_wielded_item():get_name() == "vivarium:mobtamer" and self.owner == clicker:get_player_name() then
if self.order == "follow" then if self.order == "follow" then
self.order = "stand" self.order = "stand"
minetest.chat_send_player(clicker:get_player_name(),self.name .." will now stand.") minetest.chat_send_player(clicker:get_player_name(),self.name .." will now stand.")