Skip to content

Commit

Permalink
entity.destroy() called with raise_destroy = true
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveMcW authored and jodli committed Jun 20, 2019
1 parent 610b93d commit c285689
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ function util.destroy_entity_and_raise_event(entity, destroyer_player, is_instan
-- Some mods like to make sure the entity is really dead.
return true
end
if entity.destroy() then
if entity.destroy({raise_destroy = true}) then
return true
end
return false
Expand Down Expand Up @@ -346,4 +346,4 @@ function util.kill_entity_and_raise_event(entity, killer_player)
return true
end
return false
end
end

0 comments on commit c285689

Please sign in to comment.