mirror of
https://github.com/kuitoi/kuitoi-Server.git
synced 2025-08-17 16:25:36 +00:00
mod time fix
This commit is contained in:
parent
abbd64184e
commit
7eba3d5877
@ -325,7 +325,7 @@ class Client:
|
|||||||
self._split_load(half_size, size, True, file, speed)
|
self._split_load(half_size, size, True, file, speed)
|
||||||
]
|
]
|
||||||
sl0, sl1 = await asyncio.gather(*uploads)
|
sl0, sl1 = await asyncio.gather(*uploads)
|
||||||
tr = time.monotonic() - t
|
tr = (time.monotonic() - t) or 0.0001
|
||||||
if self.__Core.lock_upload:
|
if self.__Core.lock_upload:
|
||||||
self.__Core.lock_upload = False
|
self.__Core.lock_upload = False
|
||||||
msg = i18n.client_mod_sent.format(round(size / MB, 3), math.ceil(size / tr / MB), int(tr))
|
msg = i18n.client_mod_sent.format(round(size / MB, 3), math.ceil(size / tr / MB), int(tr))
|
||||||
@ -515,6 +515,12 @@ class Client:
|
|||||||
else:
|
else:
|
||||||
self.log.debug(f"Invalid car: car_id={car_id}")
|
self.log.debug(f"Invalid car: car_id={car_id}")
|
||||||
|
|
||||||
|
async def reset_car(self, car_id, x, y, z, rot=None):
|
||||||
|
# TODO: reset_car
|
||||||
|
self.log.debug(f"Resetting car from plugin")
|
||||||
|
if rot is None:
|
||||||
|
rot = {"y": 0, "w": 0, "x": 0, "z": 0}
|
||||||
|
|
||||||
async def _reset_car(self, raw_data):
|
async def _reset_car(self, raw_data):
|
||||||
cid, car_id = self._get_cid_vid(raw_data)
|
cid, car_id = self._get_cid_vid(raw_data)
|
||||||
if car_id != -1 and cid == self.cid and self._cars[car_id]:
|
if car_id != -1 and cid == self.cid and self._cars[car_id]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user