added forgotten protection rune check (thanks to Adadov)

This commit is contained in:
TenPlus1 2017-09-03 09:15:15 +01:00
parent 59e3dcdaad
commit cdbc98dedd

View File

@ -92,6 +92,11 @@ mobs:register_mob("mob_horse:horse", {
return return
end end
-- applying protection rune
if mobs:protect(self, clicker) then
return
end
-- make sure tamed horse is being clicked by owner only -- make sure tamed horse is being clicked by owner only
if self.tamed and self.owner == clicker:get_player_name() then if self.tamed and self.owner == clicker:get_player_name() then