CONFIG
All checks were successful
Linux arm64 / Build (push) Successful in 1m3s

This commit is contained in:
2024-10-02 16:56:38 +02:00
parent cf85af9a77
commit 5d856dc66b
11 changed files with 29 additions and 17 deletions

View File

@@ -5,6 +5,7 @@ from skan.csr import skeleton_to_csgraph
from collections import Counter
from PIL import Image
import random
import config
from gdpc import Editor
@@ -141,7 +142,7 @@ class Skeleton:
Returns:
image: 2D path of the skeleton on top of the heightmap.
"""
editor = Editor()
editor = Editor(host=config.getHost())
buildArea = editor.getBuildArea()
buildRect = buildArea.toRect()

View File

@@ -7,6 +7,7 @@ from gdpc import Block as place
import numpy as np
import networks.legacy_roads.maths as maths
import math
import config
import networks.legacy_roads.tools as tools
@@ -506,7 +507,7 @@ def irlToMc(coordinates):
heightmap = Image.open('./world_maker/data/heightmap.png')
editor = Editor()
editor = Editor(host=config.getHost())
buildArea = editor.getBuildArea()
xMin = (editor.getBuildArea().begin).x
yMin = (editor.getBuildArea().begin).y
@@ -549,7 +550,7 @@ def setRoads(skeleton):
for i in range(len(housesCoordinates)):
pos = housesCoordinates[i]
# print(pos, "pos0")
editor = Editor()
editor = Editor(host=config.getHost())
xMin = (editor.getBuildArea().begin).x
yMin = (editor.getBuildArea().begin).y
zMin = (editor.getBuildArea().begin).z

View File

@@ -1,10 +1,11 @@
from gdpc import Block as place
from gdpc import Editor
import config
import networks.legacy_roads.maths as maths
USE_BATCHING = True
editor = Editor(buffering=True, caching=True, multithreading=True)
editor = Editor(host= config.getHost(), buffering=True, caching=True, multithreading=True)
def setBlock(block, xyz):