This commit is contained in:
1 parent
64bae090e9
commit
aa1fdec882
2 files changed
+3
-2
No files matched your search
@@ -28,7 +28,7 @@ async def request_world(
|
||||
if wanted is not None:
|
||||
for x in range(x_start, x_end + 1):
|
||||
for z in range(z_start, z_end + 1):
|
||||
wanted.update((x, z))
|
||||
wanted.add((x, z))
|
||||
|
||||
get_mqtt_manager().publish(f"loon/world/chunks/{x_start}:{x_end}/{z_start}:{z_end}/request")
|
||||
return 200
|
||||
@@ -54,7 +54,7 @@ async def request_world(
|
||||
if wanted is not None:
|
||||
for x in range(x_start, x_end + 1):
|
||||
for z in range(z_start, z_end + 1):
|
||||
wanted.update((x, z))
|
||||
wanted.add((x, z))
|
||||
|
||||
get_mqtt_manager().publish(f"loon/world/chunks/{x_start}:{x_end}/{z_start}:{z_end}/request")
|
||||
return 200
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
allowed_origins = ["http://localhost:5173"]
|
||||
|
||||
[redis]
|
||||
enabled = false
|
||||
host = 'localhost'
|
||||
port = 6379
|
||||
expire_time = 600 # 10 minutes
|
||||
|
||||
Reference in new issue
Block a user