fix: rust 1.97 lints
This commit is contained in:
parent
b241bbf0bd
commit
47fe060665
523
Cargo.lock
generated
523
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
12
Cargo.toml
12
Cargo.toml
@ -128,11 +128,11 @@ colored = { version = "3.1", default-features = false }
|
|||||||
console-subscriber = { version = "0.5.0", default-features = false }
|
console-subscriber = { version = "0.5.0", default-features = false }
|
||||||
crc-fast = { version = "1.10.0", default-features = false, features = ["std"] }
|
crc-fast = { version = "1.10.0", default-features = false, features = ["std"] }
|
||||||
criterion = { version = "0.8", default-features = false }
|
criterion = { version = "0.8", default-features = false }
|
||||||
crossbeam-utils = { version = "0.8.21", default-features = false, features = ["std"] }
|
crossbeam-utils = { version = "0.8.22", default-features = false, features = ["std"] }
|
||||||
crossfire = { version = "3.1.18", default-features = false, features = ["compat"] }
|
crossfire = { version = "3.1.19", default-features = false, features = ["compat"] }
|
||||||
crypto-bigint = { version = "0.7.5", default-features = false }
|
crypto-bigint = { version = "0.7.5", default-features = false }
|
||||||
dashmap = { version = "6.2", default-features = false }
|
dashmap = { version = "6.2", default-features = false }
|
||||||
ecdsa = { version = "0.16.9", default-features = false, features = ["std"] }
|
ecdsa = { version = "0.17.0", default-features = false, features = ["std"] }
|
||||||
either = { version = "1.16.0", default-features = false }
|
either = { version = "1.16.0", default-features = false }
|
||||||
enum_dispatch = { version = "0.3.13", default-features = false }
|
enum_dispatch = { version = "0.3.13", default-features = false }
|
||||||
flate2 = { version = "1.1.9", default-features = false, features = ["rust_backend"] }
|
flate2 = { version = "1.1.9", default-features = false, features = ["rust_backend"] }
|
||||||
@ -141,13 +141,13 @@ hmac = { version = "=0.13.0", default-features = false }
|
|||||||
indexmap = { version = "2.14", default-features = false, features = ["std"] }
|
indexmap = { version = "2.14", default-features = false, features = ["std"] }
|
||||||
itertools = { version = "0.15.0", default-features = false, features = ["use_std"] }
|
itertools = { version = "0.15.0", default-features = false, features = ["use_std"] }
|
||||||
libloading = { version = "0.9", default-features = false, features = ["std"] }
|
libloading = { version = "0.9", default-features = false, features = ["std"] }
|
||||||
lru = { version = "0.18.0", default-features = false }
|
lru = { version = "0.18.1", default-features = false }
|
||||||
lz4-java-wrc = { version = "0.2.0", default-features = false, features = ["lz4_flex"] }
|
lz4-java-wrc = { version = "0.2.0", default-features = false, features = ["lz4_flex"] }
|
||||||
md5 = { version = "0.8", default-features = false }
|
md5 = { version = "0.8", default-features = false }
|
||||||
num-bigint = { version = "0.5", default-features = false, features = ["std"] }
|
num-bigint = { version = "0.5", default-features = false, features = ["std"] }
|
||||||
num-derive = { version = "0.4", default-features = false }
|
num-derive = { version = "0.4", default-features = false }
|
||||||
num-traits = { version = "0.2", default-features = false, features = ["std"] }
|
num-traits = { version = "0.2", default-features = false, features = ["std"] }
|
||||||
p384 = { version = "0.13.1", default-features = false, features = ["std", "arithmetic", "pkcs8", "ecdh"] }
|
p384 = { version = "0.14.0", default-features = false, features = ["std", "arithmetic", "pkcs8", "ecdh"] }
|
||||||
phf = { version = "0.14.0", default-features = false, features = ["std"] }
|
phf = { version = "0.14.0", default-features = false, features = ["std"] }
|
||||||
proc-macro2 = { version = "1.0", default-features = false, features = ["proc-macro"] }
|
proc-macro2 = { version = "1.0", default-features = false, features = ["proc-macro"] }
|
||||||
pumpkin-codecs = { path = "pumpkin-codecs", default-features = false }
|
pumpkin-codecs = { path = "pumpkin-codecs", default-features = false }
|
||||||
@ -197,7 +197,7 @@ wasmtime-wasi = { version = "46.0", default-features = false, features = ["p2"]
|
|||||||
wasmtime-wasi-http = { version = "46.0", default-features = false, features = ["p2", "default-send-request"] }
|
wasmtime-wasi-http = { version = "46.0", default-features = false, features = ["p2", "default-send-request"] }
|
||||||
# needed for interacting with wasmtime-wasi-http - keep in sync
|
# needed for interacting with wasmtime-wasi-http - keep in sync
|
||||||
hyper = { version = "^1.10", default-features = false }
|
hyper = { version = "^1.10", default-features = false }
|
||||||
wit-bindgen = { version = "0.58", default-features = false, features = ["macros"] }
|
wit-bindgen = { version = "0.59", default-features = false, features = ["macros"] }
|
||||||
|
|
||||||
postcard = { version = "1.1", default-features = false, features = ["alloc"] }
|
postcard = { version = "1.1", default-features = false, features = ["alloc"] }
|
||||||
tracing-serde-structured = { version = "0.4", default-features = false }
|
tracing-serde-structured = { version = "0.4", default-features = false }
|
||||||
|
|||||||
295
pumpkin-codegen/Cargo.lock
generated
295
pumpkin-codegen/Cargo.lock
generated
@ -10,9 +10,9 @@ checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "anyhow"
|
name = "anyhow"
|
||||||
version = "1.0.102"
|
version = "1.0.103"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c"
|
checksum = "2a4385e2e34eb35d6b3efe798b9eb88096925d87726c0798709bf56d9ed84af3"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "autocfg"
|
name = "autocfg"
|
||||||
@ -20,12 +20,6 @@ version = "1.5.0"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
|
checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "base16ct"
|
|
||||||
version = "0.2.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf"
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "base16ct"
|
name = "base16ct"
|
||||||
version = "1.0.0"
|
version = "1.0.0"
|
||||||
@ -117,12 +111,6 @@ dependencies = [
|
|||||||
"windows-sys 0.61.2",
|
"windows-sys 0.61.2",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "const-oid"
|
|
||||||
version = "0.9.6"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8"
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "const-oid"
|
name = "const-oid"
|
||||||
version = "0.10.2"
|
version = "0.10.2"
|
||||||
@ -187,18 +175,6 @@ version = "0.8.21"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
|
checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "crypto-bigint"
|
|
||||||
version = "0.5.5"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "0dc92fb57ca44df6db8059111ab3af99a63d5d0f8375d9972e319a379c6bab76"
|
|
||||||
dependencies = [
|
|
||||||
"generic-array",
|
|
||||||
"rand_core 0.6.4",
|
|
||||||
"subtle",
|
|
||||||
"zeroize",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "crypto-bigint"
|
name = "crypto-bigint"
|
||||||
version = "0.7.5"
|
version = "0.7.5"
|
||||||
@ -207,9 +183,12 @@ checksum = "1a52aa3fcda4e6302a9f48734f234d35d4721b96f8fe07d073f07ce9df4f0271"
|
|||||||
dependencies = [
|
dependencies = [
|
||||||
"cpubits",
|
"cpubits",
|
||||||
"ctutils",
|
"ctutils",
|
||||||
|
"getrandom 0.4.1",
|
||||||
|
"hybrid-array",
|
||||||
"num-traits",
|
"num-traits",
|
||||||
"rand_core 0.10.1",
|
"rand_core",
|
||||||
"serdect",
|
"serdect",
|
||||||
|
"subtle",
|
||||||
"zeroize",
|
"zeroize",
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -229,7 +208,9 @@ version = "0.2.1"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "77727bb15fa921304124b128af125e7e3b968275d1b108b379190264f4423710"
|
checksum = "77727bb15fa921304124b128af125e7e3b968275d1b108b379190264f4423710"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
"getrandom 0.4.1",
|
||||||
"hybrid-array",
|
"hybrid-array",
|
||||||
|
"rand_core",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@ -238,9 +219,9 @@ version = "0.7.0"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "21f41f23de7d24cdbda7f0c4d9c0351f99a4ceb258ef30e5c1927af8987ffe5a"
|
checksum = "21f41f23de7d24cdbda7f0c4d9c0351f99a4ceb258ef30e5c1927af8987ffe5a"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"crypto-bigint 0.7.5",
|
"crypto-bigint",
|
||||||
"libm",
|
"libm",
|
||||||
"rand_core 0.10.1",
|
"rand_core",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@ -250,16 +231,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||||||
checksum = "7d5515a3834141de9eafb9717ad39eea8247b5674e6066c404e8c4b365d2a29e"
|
checksum = "7d5515a3834141de9eafb9717ad39eea8247b5674e6066c404e8c4b365d2a29e"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cmov",
|
"cmov",
|
||||||
]
|
"subtle",
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "der"
|
|
||||||
version = "0.7.10"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "e7c1832837b905bbfb5101e07cc24c8deddf52f93225eee6ead5f4d63d53ddcb"
|
|
||||||
dependencies = [
|
|
||||||
"const-oid 0.9.6",
|
|
||||||
"zeroize",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@ -268,7 +240,7 @@ version = "0.8.0"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "71fd89660b2dc699704064e59e9dba0147b903e85319429e131620d022be411b"
|
checksum = "71fd89660b2dc699704064e59e9dba0147b903e85319429e131620d022be411b"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"const-oid 0.10.2",
|
"const-oid",
|
||||||
"pem-rfc7468",
|
"pem-rfc7468",
|
||||||
"zeroize",
|
"zeroize",
|
||||||
]
|
]
|
||||||
@ -286,9 +258,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||||||
checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
|
checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"block-buffer 0.10.4",
|
"block-buffer 0.10.4",
|
||||||
"const-oid 0.9.6",
|
|
||||||
"crypto-common 0.1.6",
|
"crypto-common 0.1.6",
|
||||||
"subtle",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@ -298,22 +268,24 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||||||
checksum = "4850db49bf08e663084f7fb5c87d202ef91a3907271aff24a94eb97ff039153c"
|
checksum = "4850db49bf08e663084f7fb5c87d202ef91a3907271aff24a94eb97ff039153c"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"block-buffer 0.12.0",
|
"block-buffer 0.12.0",
|
||||||
"const-oid 0.10.2",
|
"const-oid",
|
||||||
"crypto-common 0.2.1",
|
"crypto-common 0.2.1",
|
||||||
|
"ctutils",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "ecdsa"
|
name = "ecdsa"
|
||||||
version = "0.16.9"
|
version = "0.17.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "ee27f32b5c5292967d2d4a9d7f1e0b0aed2c15daded5a60300e4abb9d8020bca"
|
checksum = "c0681a4fc24c767085329728d8dfba959af91228aa4610cca4f8ce317ba46ae0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"der 0.7.10",
|
"der",
|
||||||
"digest 0.10.7",
|
"digest 0.11.2",
|
||||||
"elliptic-curve",
|
"elliptic-curve",
|
||||||
"rfc6979",
|
"rfc6979",
|
||||||
"signature 2.2.0",
|
"signature",
|
||||||
"spki 0.7.3",
|
"spki",
|
||||||
|
"zeroize",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@ -324,18 +296,20 @@ checksum = "91622ff5e7162018101f2fea40d6ebf4a78bbe5a49736a2020649edf9693679e"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "elliptic-curve"
|
name = "elliptic-curve"
|
||||||
version = "0.13.8"
|
version = "0.14.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "b5e6043086bf7973472e0c7dff2142ea0b680d30e18d9cc40f267efbf222bd47"
|
checksum = "9d65aa39b3a5c1c9c1b745c9a019234bb7a21b77abcb4f4d266d706e2d577d65"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base16ct 0.2.0",
|
"base16ct",
|
||||||
"crypto-bigint 0.5.5",
|
"crypto-bigint",
|
||||||
"digest 0.10.7",
|
"crypto-common 0.2.1",
|
||||||
|
"digest 0.11.2",
|
||||||
"ff",
|
"ff",
|
||||||
"generic-array",
|
|
||||||
"group",
|
"group",
|
||||||
"pkcs8 0.10.2",
|
"hkdf",
|
||||||
"rand_core 0.6.4",
|
"hybrid-array",
|
||||||
|
"pkcs8",
|
||||||
|
"rand_core",
|
||||||
"sec1",
|
"sec1",
|
||||||
"subtle",
|
"subtle",
|
||||||
"zeroize",
|
"zeroize",
|
||||||
@ -361,14 +335,20 @@ checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "ff"
|
name = "ff"
|
||||||
version = "0.13.1"
|
version = "0.14.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "c0b50bfb653653f9ca9095b427bed08ab8d75a137839d9ad64eb11810d5b6393"
|
checksum = "a1f686ab92a9fb0eaf188f6c6c87b89490baa6fdb0db4544ba4dc47f7942489f"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"rand_core 0.6.4",
|
"rand_core",
|
||||||
"subtle",
|
"subtle",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "fiat-crypto"
|
||||||
|
version = "0.3.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "64cd1e32ddd350061ae6edb1b082d7c54915b5c672c389143b9a63403a109f24"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "find-msvc-tools"
|
name = "find-msvc-tools"
|
||||||
version = "0.1.9"
|
version = "0.1.9"
|
||||||
@ -405,7 +385,6 @@ checksum = "4bb6743198531e02858aeaea5398fcc883e71851fcbcb5a2f773e2fb6cb1edf2"
|
|||||||
dependencies = [
|
dependencies = [
|
||||||
"typenum",
|
"typenum",
|
||||||
"version_check",
|
"version_check",
|
||||||
"zeroize",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@ -428,18 +407,19 @@ dependencies = [
|
|||||||
"cfg-if",
|
"cfg-if",
|
||||||
"libc",
|
"libc",
|
||||||
"r-efi",
|
"r-efi",
|
||||||
|
"rand_core",
|
||||||
"wasip2",
|
"wasip2",
|
||||||
"wasip3",
|
"wasip3",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "group"
|
name = "group"
|
||||||
version = "0.13.0"
|
version = "0.14.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "f0f9ef7462f7c099f518d754361858f86d8a07af53ba9af0fe635bbccb151a63"
|
checksum = "7fd1a1c7a5206c5b7a3f5a0d7ccd3ff85d0c8f5133d62a02680255b0004af5f4"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ff",
|
"ff",
|
||||||
"rand_core 0.6.4",
|
"rand_core",
|
||||||
"subtle",
|
"subtle",
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -468,12 +448,21 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||||||
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "hmac"
|
name = "hkdf"
|
||||||
version = "0.12.1"
|
version = "0.13.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e"
|
checksum = "4aaa26c720c68b866f2c96ef5c1264b3e6f473fe5d4ce61cd44bbe913e553018"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"digest 0.10.7",
|
"hmac",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "hmac"
|
||||||
|
version = "0.13.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "6303bc9732ae41b04cb554b844a762b4115a61bfaa81e3e83050991eeb56863f"
|
||||||
|
dependencies = [
|
||||||
|
"digest 0.11.2",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@ -494,11 +483,13 @@ checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "hybrid-array"
|
name = "hybrid-array"
|
||||||
version = "0.4.11"
|
version = "0.4.13"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "08d46837a0ed51fe95bd3b05de33cd64a1ee88fc797477ca48446872504507c5"
|
checksum = "818356c5132c1fede50f837ca96afbe78ff42413047f4abb886217845e1b6c8c"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
"subtle",
|
||||||
"typenum",
|
"typenum",
|
||||||
|
"zeroize",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@ -555,9 +546,9 @@ checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "log"
|
name = "log"
|
||||||
version = "0.4.32"
|
version = "0.4.33"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "953f07c43838f8e6f9758cab68bf5bed85465e7587ebe0b823f1bcd81978ad3a"
|
checksum = "0ceec5bc11778974d1bcb055b18002eba7f4b3518b6a0081b3af5f21666da9ad"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "md-5"
|
name = "md-5"
|
||||||
@ -577,9 +568,9 @@ checksum = "ae960838283323069879657ca3de837e9f7bbb4c7bf6ea7f1b290d5e9476d2e0"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "memchr"
|
name = "memchr"
|
||||||
version = "2.8.1"
|
version = "2.8.3"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "6b947ae49db0d222b1dbc6b113ce7248a3fc3a6ca21b696717bfc000ba4484d8"
|
checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "miniz_oxide"
|
name = "miniz_oxide"
|
||||||
@ -619,14 +610,16 @@ checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "p384"
|
name = "p384"
|
||||||
version = "0.13.1"
|
version = "0.14.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "fe42f1670a52a47d448f14b6a5c61dd78fce51856e68edaa38f7ae3a46b8d6b6"
|
checksum = "d17b851e6b3e378ab4ecb07fa2ed23f4d15f075735f8fec9fa1e7bdce5f8301f"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ecdsa",
|
"ecdsa",
|
||||||
"elliptic-curve",
|
"elliptic-curve",
|
||||||
|
"fiat-crypto",
|
||||||
|
"primefield",
|
||||||
"primeorder",
|
"primeorder",
|
||||||
"sha2 0.10.9",
|
"sha2 0.11.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@ -699,18 +692,8 @@ version = "0.8.0-rc.4"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "986d2e952779af96ea048f160fd9194e1751b4faea78bcf3ceb456efe008088e"
|
checksum = "986d2e952779af96ea048f160fd9194e1751b4faea78bcf3ceb456efe008088e"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"der 0.8.0",
|
"der",
|
||||||
"spki 0.8.0",
|
"spki",
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "pkcs8"
|
|
||||||
version = "0.10.2"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7"
|
|
||||||
dependencies = [
|
|
||||||
"der 0.7.10",
|
|
||||||
"spki 0.7.3",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@ -719,8 +702,8 @@ version = "0.11.0"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "451913da69c775a56034ea8d9003d27ee8948e12443eae7c038ba100a4f21cb7"
|
checksum = "451913da69c775a56034ea8d9003d27ee8948e12443eae7c038ba100a4f21cb7"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"der 0.8.0",
|
"der",
|
||||||
"spki 0.8.0",
|
"spki",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@ -744,12 +727,30 @@ dependencies = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "primeorder"
|
name = "primefield"
|
||||||
version = "0.13.6"
|
version = "0.14.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "353e1ca18966c16d9deb1c69278edbc5f194139612772bd9537af60ac231e1e6"
|
checksum = "c555a6e4eb7d4e158fcb028c835c3b8642206ddc279b5c6b202ef9a8bdb592f4"
|
||||||
|
dependencies = [
|
||||||
|
"crypto-bigint",
|
||||||
|
"crypto-common 0.2.1",
|
||||||
|
"ff",
|
||||||
|
"rand_core",
|
||||||
|
"subtle",
|
||||||
|
"zeroize",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "primeorder"
|
||||||
|
version = "0.14.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "5c9f42978c78a00e3d68f69fc03e57a234debae69da4020a4fb588fcdcd07b06"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"elliptic-curve",
|
"elliptic-curve",
|
||||||
|
"once_cell",
|
||||||
|
"primefield",
|
||||||
|
"serdect",
|
||||||
|
"wnaf",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@ -811,7 +812,7 @@ dependencies = [
|
|||||||
"base64",
|
"base64",
|
||||||
"bytes",
|
"bytes",
|
||||||
"colored",
|
"colored",
|
||||||
"crypto-bigint 0.7.5",
|
"crypto-bigint",
|
||||||
"ecdsa",
|
"ecdsa",
|
||||||
"enum_dispatch",
|
"enum_dispatch",
|
||||||
"md5",
|
"md5",
|
||||||
@ -835,9 +836,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "quote"
|
name = "quote"
|
||||||
version = "1.0.45"
|
version = "1.0.46"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
|
checksum = "dfbc457d0c7a0759a614551b11a6409e5951f6c7537be1f1b7682b9ae9230368"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
]
|
]
|
||||||
@ -848,15 +849,6 @@ version = "5.3.0"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"
|
checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "rand_core"
|
|
||||||
version = "0.6.4"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
|
|
||||||
dependencies = [
|
|
||||||
"getrandom 0.2.17",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rand_core"
|
name = "rand_core"
|
||||||
version = "0.10.1"
|
version = "0.10.1"
|
||||||
@ -885,12 +877,12 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rfc6979"
|
name = "rfc6979"
|
||||||
version = "0.4.0"
|
version = "0.6.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "f8dd2a808d456c4a54e300a23e9f5a67e122c3024119acbfd73e3bf664491cb2"
|
checksum = "b4a459cddafb3fe76b31fd8f1108007566c40301feb64dc7b54656eb7388172b"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
"crypto-bigint",
|
||||||
"hmac",
|
"hmac",
|
||||||
"subtle",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@ -913,15 +905,15 @@ version = "0.10.0-rc.18"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "30b2aa4ba0d89f73d1e332df05be0eeab8840351c36ca5654341dfdb57bb3caf"
|
checksum = "30b2aa4ba0d89f73d1e332df05be0eeab8840351c36ca5654341dfdb57bb3caf"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"const-oid 0.10.2",
|
"const-oid",
|
||||||
"crypto-bigint 0.7.5",
|
"crypto-bigint",
|
||||||
"crypto-primes",
|
"crypto-primes",
|
||||||
"digest 0.11.2",
|
"digest 0.11.2",
|
||||||
"pkcs1",
|
"pkcs1",
|
||||||
"pkcs8 0.11.0",
|
"pkcs8",
|
||||||
"rand_core 0.10.1",
|
"rand_core",
|
||||||
"signature 3.0.0-rc.10",
|
"signature",
|
||||||
"spki 0.8.0",
|
"spki",
|
||||||
"zeroize",
|
"zeroize",
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -968,14 +960,14 @@ checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "sec1"
|
name = "sec1"
|
||||||
version = "0.7.3"
|
version = "0.8.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "d3e97a565f76233a6003f9f5c54be1d9c5bdfa3eccfb189469f11ec4901c47dc"
|
checksum = "d56d437c2f19203ce5f7122e507831de96f3d2d4d3be5af44a0b0a09d8a80e4d"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base16ct 0.2.0",
|
"base16ct",
|
||||||
"der 0.7.10",
|
"ctutils",
|
||||||
"generic-array",
|
"der",
|
||||||
"pkcs8 0.10.2",
|
"hybrid-array",
|
||||||
"subtle",
|
"subtle",
|
||||||
"zeroize",
|
"zeroize",
|
||||||
]
|
]
|
||||||
@ -1062,7 +1054,7 @@ version = "0.4.2"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "9af4a3e75ebd5599b30d4de5768e00b5095d518a79fefc3ecbaf77e665d1ec06"
|
checksum = "9af4a3e75ebd5599b30d4de5768e00b5095d518a79fefc3ecbaf77e665d1ec06"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base16ct 1.0.0",
|
"base16ct",
|
||||||
"serde",
|
"serde",
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -1096,22 +1088,12 @@ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "signature"
|
name = "signature"
|
||||||
version = "2.2.0"
|
version = "3.0.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de"
|
checksum = "28d567dcbaf0049cb8ac2608a76cd95ff9e4412e1899d389ee400918ca7537f5"
|
||||||
dependencies = [
|
|
||||||
"digest 0.10.7",
|
|
||||||
"rand_core 0.6.4",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "signature"
|
|
||||||
version = "3.0.0-rc.10"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "7f1880df446116126965eeec169136b2e0251dba37c6223bcc819569550edea3"
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"digest 0.11.2",
|
"digest 0.11.2",
|
||||||
"rand_core 0.10.1",
|
"rand_core",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@ -1120,16 +1102,6 @@ version = "0.3.8"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "e320a6c5ad31d271ad523dcf3ad13e2767ad8b1cb8f047f75a8aeaf8da139da2"
|
checksum = "e320a6c5ad31d271ad523dcf3ad13e2767ad8b1cb8f047f75a8aeaf8da139da2"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "spki"
|
|
||||||
version = "0.7.3"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d"
|
|
||||||
dependencies = [
|
|
||||||
"base64ct",
|
|
||||||
"der 0.7.10",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "spki"
|
name = "spki"
|
||||||
version = "0.8.0"
|
version = "0.8.0"
|
||||||
@ -1137,7 +1109,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||||||
checksum = "1d9efca8738c78ee9484207732f728b1ef517bbb1833d6fc0879ca898a522f6f"
|
checksum = "1d9efca8738c78ee9484207732f728b1ef517bbb1833d6fc0879ca898a522f6f"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base64ct",
|
"base64ct",
|
||||||
"der 0.8.0",
|
"der",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@ -1148,9 +1120,9 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "syn"
|
name = "syn"
|
||||||
version = "2.0.117"
|
version = "2.0.118"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
|
checksum = "1b9ae57f904213ebb649ce6895b8a66c66f0203b9319718f69a5612a065b1422"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
"quote",
|
"quote",
|
||||||
@ -1405,9 +1377,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "wasmparser"
|
name = "wasmparser"
|
||||||
version = "0.252.0"
|
version = "0.253.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "d3eb099dcadcde5be9eef55e3a337128efd4e44b4c93122487e4d2e4e1c6627c"
|
checksum = "19db11f87d2486580e1e8b6f494c54df7e0566b87d0b599db843c24019667339"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags",
|
"bitflags",
|
||||||
"indexmap",
|
"indexmap",
|
||||||
@ -1583,15 +1555,15 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "wit-encoder"
|
name = "wit-encoder"
|
||||||
version = "0.252.0"
|
version = "0.253.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "6b9290403ac4d75957e2633cde0854e807970d7eedc75ab3b8fba068b948dbe0"
|
checksum = "63b783601ee9357f78aaa12bc5cfd0cd0a2fb3d637de1f35604e14eef52ab97d"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"id-arena",
|
"id-arena",
|
||||||
"pretty_assertions",
|
"pretty_assertions",
|
||||||
"semver",
|
"semver",
|
||||||
"serde",
|
"serde",
|
||||||
"wit-parser 0.252.0",
|
"wit-parser 0.253.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@ -1614,9 +1586,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "wit-parser"
|
name = "wit-parser"
|
||||||
version = "0.252.0"
|
version = "0.253.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "4266bea110371c620ccf3201c5023676046bc4556e5c7cfb5d500bda5ebc162d"
|
checksum = "4d997b8e5920fcbeec742b58e583325d6419a6aca617ae8075c406a61c65ba8a"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"hashbrown 0.17.1",
|
"hashbrown 0.17.1",
|
||||||
@ -1628,7 +1600,18 @@ dependencies = [
|
|||||||
"serde_derive",
|
"serde_derive",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
"unicode-ident",
|
"unicode-ident",
|
||||||
"wasmparser 0.252.0",
|
"wasmparser 0.253.0",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "wnaf"
|
||||||
|
version = "0.14.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "ab12e7090f27e2ffd9322651492942d50c2926094af30601e1964337db39daf1"
|
||||||
|
dependencies = [
|
||||||
|
"ff",
|
||||||
|
"group",
|
||||||
|
"hybrid-array",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|||||||
@ -16,7 +16,7 @@ serde_repr = { version = "0.1" }
|
|||||||
serde_json = { version = "1.0", features = ["preserve_order"] }
|
serde_json = { version = "1.0", features = ["preserve_order"] }
|
||||||
serde_json5 = "0.2"
|
serde_json5 = "0.2"
|
||||||
|
|
||||||
wit-encoder = "0.252.0"
|
wit-encoder = "0.253.0"
|
||||||
semver = "1.0"
|
semver = "1.0"
|
||||||
rayon = "1.12.0"
|
rayon = "1.12.0"
|
||||||
|
|
||||||
|
|||||||
@ -493,7 +493,7 @@ impl TreeNodePosition {
|
|||||||
///
|
///
|
||||||
/// This is the third of three passes. It only executes if the minimum y value found in
|
/// This is the third of three passes. It only executes if the minimum y value found in
|
||||||
/// the second walk was negative, ensuring all final positions are non-negative.
|
/// the second walk was negative, ensuring all final positions are non-negative.
|
||||||
fn third_walk(nodes: &mut Vec<TreeNodePosition>, idx: usize, offset: f32) {
|
fn third_walk(nodes: &mut Vec<TreeNodePosition>, _idx: usize, offset: f32) {
|
||||||
nodes.iter_mut().for_each(|node| {
|
nodes.iter_mut().for_each(|node| {
|
||||||
node.y += offset;
|
node.y += offset;
|
||||||
});
|
});
|
||||||
|
|||||||
@ -75,12 +75,12 @@ pub fn build() -> TokenStream {
|
|||||||
let mut icon_item_id = 0i16;
|
let mut icon_item_id = 0i16;
|
||||||
let mut icon_item_aux_value = 0u32;
|
let mut icon_item_aux_value = 0u32;
|
||||||
|
|
||||||
if let Some(ref icon) = g.icon {
|
if let Some(ref icon) = g.icon
|
||||||
if let Some(&id) = bedrock_items_map.get(icon.name.as_str()) {
|
&& let Some(&id) = bedrock_items_map.get(icon.name.as_str())
|
||||||
|
{
|
||||||
icon_item_id = id;
|
icon_item_id = id;
|
||||||
icon_item_aux_value = icon.meta.unwrap_or(0) as u32;
|
icon_item_aux_value = icon.meta.unwrap_or(0) as u32;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
group_tokens.push(quote! {
|
group_tokens.push(quote! {
|
||||||
CreativeGroup {
|
CreativeGroup {
|
||||||
|
|||||||
@ -412,7 +412,7 @@ impl ToTokens for BlockPropertyStruct {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
|
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
@ -1490,7 +1490,7 @@ fn get_be_data_from_nbt<R: Read + Seek>(
|
|||||||
pumpkin_nbt::tag::NbtTag::Int(v) => v.to_string(),
|
pumpkin_nbt::tag::NbtTag::Int(v) => v.to_string(),
|
||||||
pumpkin_nbt::tag::NbtTag::String(v) => v.into(),
|
pumpkin_nbt::tag::NbtTag::String(v) => v.into(),
|
||||||
_ => {
|
_ => {
|
||||||
panic!("Unexpected type for {}. Value: {val:?}", &key);
|
panic!("Unexpected type for {}. Value: {val:?}", key);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1525,7 +1525,9 @@ fn parse_geyser_entry(
|
|||||||
.unwrap_or(java_block_name)
|
.unwrap_or(java_block_name)
|
||||||
.strip_prefix("minecraft:")
|
.strip_prefix("minecraft:")
|
||||||
.unwrap_or_else(|| {
|
.unwrap_or_else(|| {
|
||||||
compound.get_string("bedrock_identifier").unwrap_or(java_block_name)
|
compound
|
||||||
|
.get_string("bedrock_identifier")
|
||||||
|
.unwrap_or(java_block_name)
|
||||||
})
|
})
|
||||||
.to_string();
|
.to_string();
|
||||||
|
|
||||||
@ -1543,7 +1545,10 @@ fn parse_geyser_entry(
|
|||||||
pumpkin_nbt::tag::NbtTag::Int(v) => v.to_string(),
|
pumpkin_nbt::tag::NbtTag::Int(v) => v.to_string(),
|
||||||
pumpkin_nbt::tag::NbtTag::String(v) => v.to_string(),
|
pumpkin_nbt::tag::NbtTag::String(v) => v.to_string(),
|
||||||
_ => {
|
_ => {
|
||||||
panic!("Unexpected NBT type in Geyser state tag for {}. Value: {:?}", key, val);
|
panic!(
|
||||||
|
"Unexpected NBT type in Geyser state tag for {}. Value: {:?}",
|
||||||
|
key, val
|
||||||
|
);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
properties.insert(key.to_string(), unpacked);
|
properties.insert(key.to_string(), unpacked);
|
||||||
@ -1552,4 +1557,3 @@ fn parse_geyser_entry(
|
|||||||
|
|
||||||
(bedrock_identifier, properties)
|
(bedrock_identifier, properties)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -571,7 +571,7 @@ pub fn build() -> TokenStream {
|
|||||||
assert_eq!(
|
assert_eq!(
|
||||||
expected_values, &property.values,
|
expected_values, &property.values,
|
||||||
"Enum overlap for '{}' ({:?} vs {:?})",
|
"Enum overlap for '{}' ({:?} vs {:?})",
|
||||||
property.name, &property.values, expected_values
|
property.name, property.values, expected_values
|
||||||
);
|
);
|
||||||
|
|
||||||
property_mapping.push(PropertyVariantMapping {
|
property_mapping.push(PropertyVariantMapping {
|
||||||
|
|||||||
@ -643,9 +643,9 @@ fn parse_packet_file(
|
|||||||
" id if id == {}::{}::to_id(version) => {{\n",
|
" id if id == {}::{}::to_id(version) => {{\n",
|
||||||
rust_path_prefix, struct_name
|
rust_path_prefix, struct_name
|
||||||
));
|
));
|
||||||
output.push_str(&format!(
|
output.push_str(
|
||||||
" use pumpkin_protocol::ServerPacket;\n"
|
&" use pumpkin_protocol::ServerPacket;\n".to_string(),
|
||||||
));
|
);
|
||||||
output.push_str(&format!(
|
output.push_str(&format!(
|
||||||
" let p = <{}::{} as pumpkin_protocol::ServerPacket>::read(&mut Cursor::new(payload), &version).ok()?;\n",
|
" let p = <{}::{} as pumpkin_protocol::ServerPacket>::read(&mut Cursor::new(payload), &version).ok()?;\n",
|
||||||
rust_path_prefix, struct_name
|
rust_path_prefix, struct_name
|
||||||
@ -659,9 +659,9 @@ fn parse_packet_file(
|
|||||||
" id if id == <{}::{} as pumpkin_protocol::Packet>::PACKET_ID as i32 => {{\n",
|
" id if id == <{}::{} as pumpkin_protocol::Packet>::PACKET_ID as i32 => {{\n",
|
||||||
rust_path_prefix, struct_name
|
rust_path_prefix, struct_name
|
||||||
));
|
));
|
||||||
output.push_str(&format!(
|
output.push_str(
|
||||||
" use pumpkin_protocol::BServerPacket;\n"
|
&" use pumpkin_protocol::BServerPacket;\n".to_string(),
|
||||||
));
|
);
|
||||||
output.push_str(&format!(
|
output.push_str(&format!(
|
||||||
" let p = <{}::{} as pumpkin_protocol::BServerPacket>::read(&mut Cursor::new(payload)).ok()?;\n",
|
" let p = <{}::{} as pumpkin_protocol::BServerPacket>::read(&mut Cursor::new(payload)).ok()?;\n",
|
||||||
rust_path_prefix, struct_name
|
rust_path_prefix, struct_name
|
||||||
@ -708,7 +708,7 @@ fn parse_packet_file(
|
|||||||
" if let Some(p) = any.downcast_ref::<{}::{}>() {{\n",
|
" if let Some(p) = any.downcast_ref::<{}::{}>() {{\n",
|
||||||
rust_path_prefix, struct_name
|
rust_path_prefix, struct_name
|
||||||
));
|
));
|
||||||
output.push_str(&format!(" return Some(p.to_wit());\n"));
|
output.push_str(&" return Some(p.to_wit());\n".to_string());
|
||||||
output.push_str(" }\n");
|
output.push_str(" }\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -577858,7 +577858,7 @@ impl BlockProperties for OakFenceGateLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -577969,7 +577969,7 @@ impl BlockProperties for CakeLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -578078,7 +578078,7 @@ impl BlockProperties for JukeboxLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -578169,7 +578169,7 @@ impl BlockProperties for NetherPortalLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -578287,7 +578287,7 @@ impl BlockProperties for PaleMossCarpetLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -578457,7 +578457,7 @@ impl BlockProperties for ResinBrickWallLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -578611,7 +578611,7 @@ impl BlockProperties for DriedGhastLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -578735,7 +578735,7 @@ impl BlockProperties for MovingPistonLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -578844,7 +578844,7 @@ impl BlockProperties for PistonHeadLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -578965,7 +578965,7 @@ impl BlockProperties for CalibratedSculkSensorLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -579127,7 +579127,7 @@ impl BlockProperties for SculkSensorLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -579277,7 +579277,7 @@ impl BlockProperties for StickyPistonLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -579400,7 +579400,7 @@ impl BlockProperties for RedstoneWireLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -579584,7 +579584,7 @@ impl BlockProperties for ChiseledBookshelfLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -579729,7 +579729,7 @@ impl BlockProperties for StructureBlockLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -579817,7 +579817,7 @@ impl BlockProperties for ChorusFlowerLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -579924,7 +579924,7 @@ impl BlockProperties for CactusLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -580088,7 +580088,7 @@ impl BlockProperties for FireLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -580239,7 +580239,7 @@ impl BlockProperties for HopperLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -580344,7 +580344,7 @@ impl BlockProperties for TrialSpawnerLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -580455,7 +580455,7 @@ impl BlockProperties for ScaffoldingLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -580594,7 +580594,7 @@ impl BlockProperties for ComparatorLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -580735,7 +580735,7 @@ impl BlockProperties for WallTorchLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -580885,7 +580885,7 @@ impl BlockProperties for VaultLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -580989,7 +580989,7 @@ impl BlockProperties for GrindstoneLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -581115,7 +581115,7 @@ impl BlockProperties for LeverLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -581250,7 +581250,7 @@ impl BlockProperties for RepeaterLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -581417,7 +581417,7 @@ impl BlockProperties for OakDoorLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -581628,7 +581628,7 @@ impl BlockProperties for OakStairsLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -581810,7 +581810,7 @@ impl BlockProperties for SmallDripleafLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -581920,7 +581920,7 @@ impl BlockProperties for SkeletonWallSkullLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -582069,7 +582069,7 @@ impl BlockProperties for OakTrapdoorLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -582210,7 +582210,7 @@ impl BlockProperties for LecternLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -582324,7 +582324,7 @@ impl BlockProperties for BellLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -582435,7 +582435,7 @@ impl BlockProperties for TripwireHookLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -582567,7 +582567,7 @@ impl BlockProperties for AcaciaShelfLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -582690,7 +582690,7 @@ impl BlockProperties for EndPortalFrameLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -582792,7 +582792,7 @@ impl BlockProperties for FurnaceLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -582908,7 +582908,7 @@ impl BlockProperties for CampfireLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -583033,7 +583033,7 @@ impl BlockProperties for CopperGolemStatueLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -583170,7 +583170,7 @@ impl BlockProperties for WhiteBedLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -583292,7 +583292,7 @@ impl BlockProperties for BeeNestLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -583422,7 +583422,7 @@ impl BlockProperties for DecoratedPotLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -583568,7 +583568,7 @@ impl BlockProperties for LadderLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -583719,7 +583719,7 @@ impl BlockProperties for BigDripleafLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -583845,7 +583845,7 @@ impl BlockProperties for ChestLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -583964,7 +583964,7 @@ impl BlockProperties for PinkPetalsLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -584083,7 +584083,7 @@ impl BlockProperties for LeafLitterLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -584202,7 +584202,7 @@ impl BlockProperties for CocoaLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -584326,7 +584326,7 @@ impl BlockProperties for SculkShriekerLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -584430,7 +584430,7 @@ impl BlockProperties for PotentSulfurLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -584534,7 +584534,7 @@ impl BlockProperties for BambooLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -584655,7 +584655,7 @@ impl BlockProperties for RespawnAnchorLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -584780,7 +584780,7 @@ impl BlockProperties for EndRodLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -584897,7 +584897,7 @@ impl BlockProperties for DispenserLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -584999,7 +584999,7 @@ impl BlockProperties for ObserverLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -585111,7 +585111,7 @@ impl BlockProperties for LightningRodLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -585221,7 +585221,7 @@ impl BlockProperties for BarrelLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -585323,7 +585323,7 @@ impl BlockProperties for AmethystClusterLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -585428,7 +585428,7 @@ impl BlockProperties for CommandBlockLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -585543,7 +585543,7 @@ impl BlockProperties for NoteBlockLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -585713,7 +585713,7 @@ impl BlockProperties for BrewingStandLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -585817,7 +585817,7 @@ impl BlockProperties for SnowLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -585931,7 +585931,7 @@ impl BlockProperties for TallSeagrassLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -586031,7 +586031,7 @@ impl BlockProperties for PitcherCropLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -586159,7 +586159,7 @@ impl BlockProperties for CrafterLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -586254,7 +586254,7 @@ impl BlockProperties for FarmlandLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -586365,7 +586365,7 @@ impl BlockProperties for SuspiciousSandLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -586547,7 +586547,7 @@ impl BlockProperties for ResinBrickSlabLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -586729,7 +586729,7 @@ impl BlockProperties for StonePressurePlateLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -586842,7 +586842,7 @@ impl BlockProperties for CopperBulbLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -586982,7 +586982,7 @@ impl BlockProperties for TripwireLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -587101,7 +587101,7 @@ impl BlockProperties for PoweredRailLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -587208,7 +587208,7 @@ impl BlockProperties for SkeletonSkullLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -587345,7 +587345,7 @@ impl BlockProperties for TestBlockLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -587433,7 +587433,7 @@ impl BlockProperties for ComposterLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -587546,7 +587546,7 @@ impl BlockProperties for CaveVinesPlantLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -587640,7 +587640,7 @@ impl BlockProperties for CaveVinesLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -587794,7 +587794,7 @@ impl BlockProperties for TntLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -587919,7 +587919,7 @@ impl BlockProperties for BrownMushroomBlockLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -588064,7 +588064,7 @@ impl BlockProperties for GlowLichenLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -588200,7 +588200,7 @@ impl BlockProperties for VineLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -588322,7 +588322,7 @@ impl BlockProperties for RedstoneOreLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -588468,7 +588468,7 @@ impl BlockProperties for CandleLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -588602,7 +588602,7 @@ impl BlockProperties for PaleHangingMossLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -588690,7 +588690,7 @@ impl BlockProperties for BubbleColumnLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -588849,7 +588849,7 @@ impl BlockProperties for OakFenceLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -588992,7 +588992,7 @@ impl BlockProperties for SculkCatalystLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -589080,7 +589080,7 @@ impl BlockProperties for GrassBlockLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -589187,7 +589187,7 @@ impl BlockProperties for OakLeavesLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -589314,7 +589314,7 @@ impl BlockProperties for SnifferEggLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -589424,7 +589424,7 @@ impl BlockProperties for TurtleEggLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -589579,7 +589579,7 @@ impl BlockProperties for OakHangingSignLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -589738,7 +589738,7 @@ impl BlockProperties for DaylightDetectorLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -589872,7 +589872,7 @@ impl BlockProperties for WaterCauldronLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -589996,7 +589996,7 @@ impl BlockProperties for MangrovePropaguleLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -590137,7 +590137,7 @@ impl BlockProperties for LanternLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -590239,7 +590239,7 @@ impl BlockProperties for OakSaplingLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -590344,7 +590344,7 @@ impl BlockProperties for WheatLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -590458,7 +590458,7 @@ impl BlockProperties for JigsawLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -590568,7 +590568,7 @@ impl BlockProperties for PointedDripstoneLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -590677,7 +590677,7 @@ impl BlockProperties for SeaPickleLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -590825,7 +590825,7 @@ impl BlockProperties for MangroveRootsLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -590960,7 +590960,7 @@ impl BlockProperties for RailLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -591068,7 +591068,7 @@ impl BlockProperties for IronChainLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -591190,7 +591190,7 @@ impl BlockProperties for OakSignLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -591350,7 +591350,7 @@ impl BlockProperties for LightLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -591547,7 +591547,7 @@ impl BlockProperties for PaleOakWoodLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -591714,7 +591714,7 @@ impl BlockProperties for CreakingHeartLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -591832,7 +591832,7 @@ impl BlockProperties for WhiteBannerLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -591977,7 +591977,7 @@ impl BlockProperties for WaterLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -592104,7 +592104,7 @@ impl BlockProperties for KelpLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -592251,7 +592251,7 @@ impl BlockProperties for LightWeightedPressurePlateLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -592378,7 +592378,7 @@ impl BlockProperties for TorchflowerCropLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
@ -592477,7 +592477,7 @@ impl BlockProperties for NetherWartLikeProperties {
|
|||||||
Self::from_index(id.as_u16() - min_id)
|
Self::from_index(id.as_u16() - min_id)
|
||||||
} else {
|
} else {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
panic!("State ID {} does not exist for {}", id, &block.name);
|
panic!("State ID {} does not exist for {}", id, block.name);
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
Self::from_index(0)
|
Self::from_index(0)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -902,7 +902,7 @@ impl FluidProperties for WaterLikeFluidProperties {
|
|||||||
if !["water", "lava"].contains(&fluid.name) {
|
if !["water", "lava"].contains(&fluid.name) {
|
||||||
panic!(
|
panic!(
|
||||||
"{} is not a valid fluid for {}",
|
"{} is not a valid fluid for {}",
|
||||||
&fluid.name, "WaterLikeFluidProperties"
|
fluid.name, "WaterLikeFluidProperties"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
let prop_index = self.to_index();
|
let prop_index = self.to_index();
|
||||||
@ -916,7 +916,7 @@ impl FluidProperties for WaterLikeFluidProperties {
|
|||||||
if !["water", "lava"].contains(&fluid.name) {
|
if !["water", "lava"].contains(&fluid.name) {
|
||||||
panic!(
|
panic!(
|
||||||
"{} is not a valid fluid for {}",
|
"{} is not a valid fluid for {}",
|
||||||
&fluid.name, "WaterLikeFluidProperties"
|
fluid.name, "WaterLikeFluidProperties"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
for (idx, state) in fluid.states.iter().enumerate() {
|
for (idx, state) in fluid.states.iter().enumerate() {
|
||||||
@ -930,7 +930,7 @@ impl FluidProperties for WaterLikeFluidProperties {
|
|||||||
if !["water", "lava"].contains(&fluid.name) {
|
if !["water", "lava"].contains(&fluid.name) {
|
||||||
panic!(
|
panic!(
|
||||||
"{} is not a valid fluid for {}",
|
"{} is not a valid fluid for {}",
|
||||||
&fluid.name, "WaterLikeFluidProperties"
|
fluid.name, "WaterLikeFluidProperties"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Self::from_index(fluid.default_state_index)
|
Self::from_index(fluid.default_state_index)
|
||||||
@ -942,7 +942,7 @@ impl FluidProperties for WaterLikeFluidProperties {
|
|||||||
if !["water", "lava"].contains(&fluid.name) {
|
if !["water", "lava"].contains(&fluid.name) {
|
||||||
panic!(
|
panic!(
|
||||||
"{} is not a valid fluid for {}",
|
"{} is not a valid fluid for {}",
|
||||||
&fluid.name, "WaterLikeFluidProperties"
|
fluid.name, "WaterLikeFluidProperties"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
let mut fluid_props = Self::default(fluid);
|
let mut fluid_props = Self::default(fluid);
|
||||||
@ -990,7 +990,7 @@ impl FluidProperties for FlowingWaterLikeFluidProperties {
|
|||||||
if !["flowing_water", "flowing_lava"].contains(&fluid.name) {
|
if !["flowing_water", "flowing_lava"].contains(&fluid.name) {
|
||||||
panic!(
|
panic!(
|
||||||
"{} is not a valid fluid for {}",
|
"{} is not a valid fluid for {}",
|
||||||
&fluid.name, "FlowingWaterLikeFluidProperties"
|
fluid.name, "FlowingWaterLikeFluidProperties"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
let prop_index = self.to_index();
|
let prop_index = self.to_index();
|
||||||
@ -1004,7 +1004,7 @@ impl FluidProperties for FlowingWaterLikeFluidProperties {
|
|||||||
if !["flowing_water", "flowing_lava"].contains(&fluid.name) {
|
if !["flowing_water", "flowing_lava"].contains(&fluid.name) {
|
||||||
panic!(
|
panic!(
|
||||||
"{} is not a valid fluid for {}",
|
"{} is not a valid fluid for {}",
|
||||||
&fluid.name, "FlowingWaterLikeFluidProperties"
|
fluid.name, "FlowingWaterLikeFluidProperties"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
for (idx, state) in fluid.states.iter().enumerate() {
|
for (idx, state) in fluid.states.iter().enumerate() {
|
||||||
@ -1018,7 +1018,7 @@ impl FluidProperties for FlowingWaterLikeFluidProperties {
|
|||||||
if !["flowing_water", "flowing_lava"].contains(&fluid.name) {
|
if !["flowing_water", "flowing_lava"].contains(&fluid.name) {
|
||||||
panic!(
|
panic!(
|
||||||
"{} is not a valid fluid for {}",
|
"{} is not a valid fluid for {}",
|
||||||
&fluid.name, "FlowingWaterLikeFluidProperties"
|
fluid.name, "FlowingWaterLikeFluidProperties"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Self::from_index(fluid.default_state_index)
|
Self::from_index(fluid.default_state_index)
|
||||||
@ -1033,7 +1033,7 @@ impl FluidProperties for FlowingWaterLikeFluidProperties {
|
|||||||
if !["flowing_water", "flowing_lava"].contains(&fluid.name) {
|
if !["flowing_water", "flowing_lava"].contains(&fluid.name) {
|
||||||
panic!(
|
panic!(
|
||||||
"{} is not a valid fluid for {}",
|
"{} is not a valid fluid for {}",
|
||||||
&fluid.name, "FlowingWaterLikeFluidProperties"
|
fluid.name, "FlowingWaterLikeFluidProperties"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
let mut fluid_props = Self::default(fluid);
|
let mut fluid_props = Self::default(fluid);
|
||||||
|
|||||||
@ -70,9 +70,9 @@ impl Frame {
|
|||||||
let mut frames = Vec::new();
|
let mut frames = Vec::new();
|
||||||
let mut header_buf = [0u8; 1];
|
let mut header_buf = [0u8; 1];
|
||||||
|
|
||||||
while match reader.read(&mut header_buf) {
|
while {
|
||||||
Ok(n) => n > 0,
|
let n = reader.read(&mut header_buf)?;
|
||||||
Err(e) => return Err(e),
|
n > 0
|
||||||
} {
|
} {
|
||||||
let header = header_buf[0];
|
let header = header_buf[0];
|
||||||
let mut frame = Self::default();
|
let mut frame = Self::default();
|
||||||
|
|||||||
@ -408,7 +408,7 @@ impl<S: SingleChunkDataSerializer> AnvilChunkFile<S> {
|
|||||||
{
|
{
|
||||||
// Verify we are actually two sectors into the file
|
// Verify we are actually two sectors into the file
|
||||||
let current_pos = write.stream_position().await?;
|
let current_pos = write.stream_position().await?;
|
||||||
assert!(current_pos as usize == 2 * SECTOR_BYTES);
|
assert_eq!(current_pos as usize, 2 * SECTOR_BYTES);
|
||||||
};
|
};
|
||||||
|
|
||||||
let mut current_sector = 2;
|
let mut current_sector = 2;
|
||||||
|
|||||||
@ -99,7 +99,7 @@ impl LevelCache {
|
|||||||
match change.entry(pos) {
|
match change.entry(pos) {
|
||||||
Entry::Occupied(mut entry) => {
|
Entry::Occupied(mut entry) => {
|
||||||
let i = entry.get_mut();
|
let i = entry.get_mut();
|
||||||
debug_assert!(i.1 == value.0);
|
debug_assert_eq!(i.1, value.0);
|
||||||
if i.0 == value.1 {
|
if i.0 == value.1 {
|
||||||
entry.remove();
|
entry.remove();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -104,10 +104,9 @@ impl JigsawPlacement {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(anchor) = found_anchor {
|
{
|
||||||
|
let anchor = found_anchor?;
|
||||||
anchored_position = anchor;
|
anchored_position = anchor;
|
||||||
} else {
|
|
||||||
return None;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -227,7 +227,7 @@ impl PlayerAdvancement {
|
|||||||
pub fn new(manager: Arc<AdvancementManager>, uuid: Uuid) -> Self {
|
pub fn new(manager: Arc<AdvancementManager>, uuid: Uuid) -> Self {
|
||||||
Self {
|
Self {
|
||||||
progress: AdvancementProgressMap::default(),
|
progress: AdvancementProgressMap::default(),
|
||||||
path: manager.advancement_path.join(format!("{}.json", &uuid)),
|
path: manager.advancement_path.join(format!("{uuid}.json")),
|
||||||
manager,
|
manager,
|
||||||
player: Weak::new(),
|
player: Weak::new(),
|
||||||
is_first_packet: true,
|
is_first_packet: true,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user