mirror of
https://codeberg.org/tenplus1/mob_horse.git
synced 2025-07-26 12:00:20 +02:00
added forgotten protection rune check (thanks to Adadov)
This commit is contained in:
5
init.lua
5
init.lua
@ -92,6 +92,11 @@ mobs:register_mob("mob_horse:horse", {
|
||||
return
|
||||
end
|
||||
|
||||
-- applying protection rune
|
||||
if mobs:protect(self, clicker) then
|
||||
return
|
||||
end
|
||||
|
||||
-- make sure tamed horse is being clicked by owner only
|
||||
if self.tamed and self.owner == clicker:get_player_name() then
|
||||
|
||||
|
Reference in New Issue
Block a user