mirror of
https://github.com/APercy/airutils.git
synced 2025-03-15 08:01:22 +00:00
improved position strings
This commit is contained in:
parent
a9604962eb
commit
81651959ba
2 changed files with 4 additions and 6 deletions
|
@ -28,7 +28,7 @@ function airutils.on_deactivate(self)
|
|||
airutils.save_inventory(self)
|
||||
local pos = self.object:get_pos()
|
||||
if airutils.debug_log then
|
||||
minetest.log("action","deactivating: "..self._vehicle_name.." from "..self.owner.." at position "..pos.x..","..pos.y..","..pos.z)
|
||||
minetest.log("action","deactivating: "..self._vehicle_name.." from "..self.owner.." at position "..math.floor(pos.x)..","..math.floor(pos.y)..","..math.floor(pos.z))
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -70,7 +70,7 @@ function airutils.on_activate(self, staticdata, dtime_s)
|
|||
self._pitch = 0
|
||||
|
||||
if airutils.debug_log then
|
||||
minetest.log("action","activating: "..self._vehicle_name.." from "..self.owner.." at position "..pos.x..","..pos.y..","..pos.z)
|
||||
minetest.log("action","activating: "..self._vehicle_name.." from "..self.owner.." at position "..math.floor(pos.x)..","..math.floor(pos.y)..","..math.floor(pos.z))
|
||||
end
|
||||
|
||||
if self._register_parts_method then
|
||||
|
|
|
@ -259,12 +259,10 @@ function airutils.destroy(self, by_name)
|
|||
if by_name == self.owner then with_fire = false end
|
||||
local pos = self.object:get_pos()
|
||||
|
||||
minetest.log("action","destroying: "..self._vehicle_name.." from "..self.owner.." at position "..pos.x..","..pos.y..","..pos.z)
|
||||
|
||||
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)
|
||||
minetest.log("action", "airutils: The player "..self.owner.." had it's "..self._vehicle_name.." destroyed at position x="..math.floor(pos.x).." y="..math.floor(pos.y).." z="..math.floor(pos.z))
|
||||
else
|
||||
minetest.log("action", "airutils: An airplane was destroyed at position x="..pos.x.." y="..pos.y.." z="..pos.z)
|
||||
minetest.log("action", "airutils: An airplane was destroyed at position x="..math.floor(pos.x).." y="..math.floor(pos.y).." z="..math.floor(pos.z))
|
||||
end
|
||||
|
||||
if self.sound_handle then
|
||||
|
|
Loading…
Add table
Reference in a new issue