mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2024-12-23 09:10:22 +01:00
make it possible to use advanced protector on normally protected mob
This commit is contained in:
parent
f6e16a5503
commit
9be934ec25
3
api.lua
3
api.lua
@ -4618,7 +4618,8 @@ function mobs:protect(self, clicker)
|
||||
return true
|
||||
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!"))
|
||||
return true
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user