Refactor mobs_mc a bit

This commit is contained in:
Wuzzy 2019-03-11 13:25:06 +01:00
parent cc9b78215a
commit 2c599c4a0e
6 changed files with 10 additions and 39 deletions

View file

@ -195,8 +195,8 @@ if c("egg") then
}, nil)
end,
hit_mob = function(self, player)
player:punch(minetest.get_player_by_name(self.playername) or self.object, 1.0, {
hit_mob = function(self, mob)
mob:punch(minetest.get_player_by_name(self.playername) or self.object, 1.0, {
full_punch_interval = 1.0,
damage_groups = {},
}, nil)