mirror of
https://github.com/APercy/airutils.git
synced 2025-03-15 08:01:22 +00:00
log added to inform the plane destrction
This commit is contained in:
parent
8654a100f7
commit
5ae1a76779
1 changed files with 7 additions and 1 deletions
|
@ -250,6 +250,13 @@ function airutils.destroy(self, by_name)
|
|||
by_name = by_name or ""
|
||||
local with_fire = self._enable_fire_explosion
|
||||
if by_name == self.owner then with_fire = false end
|
||||
local pos = self.object:get_pos()
|
||||
|
||||
if self.owner and self._vehicle_name then
|
||||
minetest.log("action", "airutils: The player "..self.owner.." had it's "..self._vehicle_name.." destroyed at position x="..pos.x.." y="..pos.y.." z="..pos.z)
|
||||
else
|
||||
minetest.log("action", "airutils: An airplane was destroyed at position x="..pos.x.." y="..pos.y.." z="..pos.z)
|
||||
end
|
||||
|
||||
if self.sound_handle then
|
||||
minetest.sound_stop(self.sound_handle)
|
||||
|
@ -272,7 +279,6 @@ function airutils.destroy(self, by_name)
|
|||
airutils.dettachPlayer(self, player)
|
||||
end
|
||||
|
||||
local pos = self.object:get_pos()
|
||||
airutils.add_destruction_effects(pos, 5, with_fire)
|
||||
|
||||
airutils.seats_destroy(self)
|
||||
|
|
Loading…
Add table
Reference in a new issue