forked from mtcontrib/mobs_redo
make it possible to use advanced protector on normally protected mob
This commit is contained in:
3
api.lua
3
api.lua
@ -4618,7 +4618,8 @@ function mobs:protect(self, clicker)
|
|||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
if self.protected then
|
if (self.protected and tool_name == "mobs:protector")
|
||||||
|
or (self.protected == 2 and tool_name == "mobs:protector2") then
|
||||||
minetest.chat_send_player(name, S("Already protected!"))
|
minetest.chat_send_player(name, S("Already protected!"))
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user