mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-14 23:21:07 +01:00
Now only allowing players and lua entities to do assist kills.
This commit is contained in:
parent
96cd2657db
commit
a1d98c080f
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ end)
|
|||
|
||||
mcl_damage.register_on_damage(function(obj, damage, reason)
|
||||
if obj:get_hp() - damage > 0 then
|
||||
if reason.source then
|
||||
if reason.source and (reason.source:is_player() or obj:get_luaentity()) then
|
||||
-- To avoid timing issues we cancel the previous job before adding a new one.
|
||||
if mcl_death_messages.assist[obj] then
|
||||
mcl_death_messages.assist[obj].job:cancel()
|
||||
|
|
Loading…
Reference in a new issue