Fix the python script so it detects \r correctly.

This commit is contained in:
IntegratedQuantum 2024-05-16 21:18:38 +02:00
parent 48bf2a6d0a
commit 1ba81dc62f
22 changed files with 233 additions and 233 deletions

View File

@ -1,11 +1,11 @@
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0xe95825,
"model" : "cube",
"texture" : "cubyz:glass/aqua"
}
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0xe95825,
"model" : "cube",
"texture" : "cubyz:glass/aqua"
}

View File

@ -1,11 +1,11 @@
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0xe6e6e6,
"model" : "cube",
"texture" : "cubyz:glass/black"
}
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0xe6e6e6,
"model" : "cube",
"texture" : "cubyz:glass/black"
}

View File

@ -1,11 +1,11 @@
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0xdc923c,
"model" : "cube",
"texture" : "cubyz:glass/blue"
}
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0xdc923c,
"model" : "cube",
"texture" : "cubyz:glass/blue"
}

View File

@ -1,11 +1,11 @@
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0x96bdd8,
"model" : "cube",
"texture" : "cubyz:glass/brown"
}
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0x96bdd8,
"model" : "cube",
"texture" : "cubyz:glass/brown"
}

View File

@ -1,11 +1,11 @@
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0x69e4e1,
"model" : "cube",
"texture" : "cubyz:glass/crimson"
}
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0x69e4e1,
"model" : "cube",
"texture" : "cubyz:glass/crimson"
}

View File

@ -1,11 +1,11 @@
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0xc62031,
"model" : "cube",
"texture" : "cubyz:glass/cyan"
}
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0xc62031,
"model" : "cube",
"texture" : "cubyz:glass/cyan"
}

View File

@ -1,11 +1,11 @@
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0xacacac,
"model" : "cube",
"texture" : "cubyz:glass/dark_grey"
}
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0xacacac,
"model" : "cube",
"texture" : "cubyz:glass/dark_grey"
}

View File

@ -1,11 +1,11 @@
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0xd966d9,
"model" : "cube",
"texture" : "cubyz:glass/green"
}
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0xd966d9,
"model" : "cube",
"texture" : "cubyz:glass/green"
}

View File

@ -1,11 +1,11 @@
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0x656565,
"model" : "cube",
"texture" : "cubyz:glass/grey"
}
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0x656565,
"model" : "cube",
"texture" : "cubyz:glass/grey"
}

View File

@ -1,11 +1,11 @@
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0xd0c16d,
"model" : "cube",
"texture" : "cubyz:glass/indigo"
}
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0xd0c16d,
"model" : "cube",
"texture" : "cubyz:glass/indigo"
}

View File

@ -1,11 +1,11 @@
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0xa03ed0,
"model" : "cube",
"texture" : "cubyz:glass/lime"
}
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0xa03ed0,
"model" : "cube",
"texture" : "cubyz:glass/lime"
}

View File

@ -1,11 +1,11 @@
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0x0d9f35,
"model" : "cube",
"texture" : "cubyz:glass/magenta"
}
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0x0d9f35,
"model" : "cube",
"texture" : "cubyz:glass/magenta"
}

View File

@ -1,11 +1,11 @@
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0x1183ee,
"model" : "cube",
"texture" : "cubyz:glass/orange"
}
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0x1183ee,
"model" : "cube",
"texture" : "cubyz:glass/orange"
}

View File

@ -1,11 +1,11 @@
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0x056830,
"model" : "cube",
"texture" : "cubyz:glass/pink"
}
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0x056830,
"model" : "cube",
"texture" : "cubyz:glass/pink"
}

View File

@ -1,11 +1,11 @@
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0x83d66a,
"model" : "cube",
"texture" : "cubyz:glass/purple"
}
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0x83d66a,
"model" : "cube",
"texture" : "cubyz:glass/purple"
}

View File

@ -1,11 +1,11 @@
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0x2ad6d6,
"model" : "cube",
"texture" : "cubyz:glass/red"
}
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0x2ad6d6,
"model" : "cube",
"texture" : "cubyz:glass/red"
}

View File

@ -1,12 +1,12 @@
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0x4001ff,
"emittedLight" : 0x80ff00,
"model" : "cube",
"texture" : "cubyz:glass/uranium"
}
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0x4001ff,
"emittedLight" : 0x80ff00,
"model" : "cube",
"texture" : "cubyz:glass/uranium"
}

View File

@ -1,11 +1,11 @@
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0x46c345,
"model" : "cube",
"texture" : "cubyz:glass/violet"
}
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0x46c345,
"model" : "cube",
"texture" : "cubyz:glass/violet"
}

View File

@ -1,11 +1,11 @@
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0xf09ad6,
"model" : "cube",
"texture" : "cubyz:glass/viridian"
}
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0xf09ad6,
"model" : "cube",
"texture" : "cubyz:glass/viridian"
}

View File

@ -1,11 +1,11 @@
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0x0f0f0f,
"model" : "cube",
"texture" : "cubyz:glass/white"
}
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0x0f0f0f,
"model" : "cube",
"texture" : "cubyz:glass/white"
}

View File

@ -1,11 +1,11 @@
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0x0d36f1,
"model" : "cube",
"texture" : "cubyz:glass/yellow"
}
{
"class" : "stone",
"hardness" : 2,
"drops" : [
"none"
],
"transparent" : true,
"absorbedLight" : 0x0d36f1,
"model" : "cube",
"texture" : "cubyz:glass/yellow"
}

View File

@ -16,7 +16,7 @@ for subdir, dirs, files in os.walk("."):
if filepath.startswith("./zig-cache"): continue
if filepath.endswith(".json") or filepath.endswith(".zig") or filepath.endswith(".py") or filepath.endswith(".zon") or filepath.endswith(".vs") or filepath.endswith(".fs") or filepath.endswith(".glsl"):
with open(filepath, "r") as f:
with open(filepath, "r", newline = '') as f:
string = f.read()
line = 1
lineStart = True