mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-04-22 23:25:15 +02:00
Merge pull request 'on_attack callback fix' (#4065) from on_attack_callback into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/4065
This commit is contained in:
commit
aff4216ccf
1 changed files with 1 additions and 2 deletions
|
@ -1250,11 +1250,10 @@ function mob_class:do_states_attack (dtime)
|
|||
|
||||
elseif self.attack_type == "custom" and self.attack_state then
|
||||
self.attack_state(self, dtime)
|
||||
else
|
||||
end
|
||||
|
||||
if self.on_attack then
|
||||
self.on_attack(self, dtime)
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue