mirror of
https://github.com/APercy/airutils.git
synced 2025-07-13 09:51:55 -04: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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue