Fix several "undeclared global" errors
This commit is contained in:
parent
fb3db5077c
commit
a7d429a017
4 changed files with 7 additions and 6 deletions
|
@ -132,7 +132,7 @@ mobs:register_arrow(":mobs_mc:fireball", {
|
|||
|
||||
-- direct hit, no fire... just plenty of pain
|
||||
hit_player = function(self, player)
|
||||
minetest.sound_play("tnt_explode", {pos = pos, gain = 1.5, max_hear_distance = 16})
|
||||
minetest.sound_play("tnt_explode", {pos = player:get_pos(), gain = 1.5, max_hear_distance = 16})
|
||||
player:punch(self.object, 1.0, {
|
||||
full_punch_interval = 0.5,
|
||||
damage_groups = {fleshy = 8},
|
||||
|
@ -140,8 +140,8 @@ mobs:register_arrow(":mobs_mc:fireball", {
|
|||
|
||||
end,
|
||||
|
||||
hit_mob = function(self, player)
|
||||
minetest.sound_play("tnt_explode", {pos = pos, gain = 1.5,max_hear_distance = 16})
|
||||
hit_mob = function(self, mob)
|
||||
minetest.sound_play("tnt_explode", {pos = mob:get_pos(), gain = 1.5,max_hear_distance = 16})
|
||||
player:punch(self.object, 1.0, {
|
||||
full_punch_interval = 0.5,
|
||||
damage_groups = {fleshy = 8},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue