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", "class" : "stone",
"hardness" : 2, "hardness" : 2,
"drops" : [ "drops" : [
"none" "none"
], ],
"transparent" : true, "transparent" : true,
"absorbedLight" : 0xe95825, "absorbedLight" : 0xe95825,
"model" : "cube", "model" : "cube",
"texture" : "cubyz:glass/aqua" "texture" : "cubyz:glass/aqua"
} }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,11 +1,11 @@
{ {
"class" : "stone", "class" : "stone",
"hardness" : 2, "hardness" : 2,
"drops" : [ "drops" : [
"none" "none"
], ],
"transparent" : true, "transparent" : true,
"absorbedLight" : 0x0d36f1, "absorbedLight" : 0x0d36f1,
"model" : "cube", "model" : "cube",
"texture" : "cubyz:glass/yellow" "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.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"): 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() string = f.read()
line = 1 line = 1
lineStart = True lineStart = True