From f036b4c7e224281e38e779732f16a18123f4c0bf Mon Sep 17 00:00:00 2001 From: NaySurGithub <96527285+NaySurGithub@users.noreply.github.com> Date: Thu, 5 Nov 2026 13:13:33 +0100 Subject: [PATCH] feat: add the 1.26.50 to 1.26.60 block state upgrade schema --- Schemas/0361_1.26.50_to_1.26.60.json | 59 ++++++++++++++++++++++++++++ Tests/BlockStateUpgraderTests.cpp | 4 +- 2 files changed, 61 insertions(+), 2 deletions(-) create mode 100644 Schemas/0361_1.26.50_to_1.26.60.json diff --git a/Schemas/0361_1.26.50_to_1.26.60.json b/Schemas/0361_1.26.50_to_1.26.60.json new file mode 100644 index 0000000..89526cb --- /dev/null +++ b/Schemas/0361_1.26.50_to_1.26.60.json @@ -0,0 +1,59 @@ +{ + "maxVersionMajor": 1, + "maxVersionMinor": 21, + "maxVersionPatch": 60, + "maxVersionRevision": 33, + "addedProperties": { + "minecraft:chorus_plant": { + "minecraft:connection_down": { + "byte": 0 + }, + "minecraft:connection_east": { + "byte": 0 + }, + "minecraft:connection_north": { + "byte": 0 + }, + "minecraft:connection_south": { + "byte": 0 + }, + "minecraft:connection_up": { + "byte": 0 + }, + "minecraft:connection_west": { + "byte": 0 + } + }, + "minecraft:fire": { + "minecraft:connection_east": { + "byte": 0 + }, + "minecraft:connection_north": { + "byte": 0 + }, + "minecraft:connection_south": { + "byte": 0 + }, + "minecraft:connection_up": { + "byte": 0 + }, + "minecraft:connection_west": { + "byte": 0 + } + }, + "minecraft:redstone_wire": { + "redstone_east": { + "string": "none" + }, + "redstone_north": { + "string": "none" + }, + "redstone_south": { + "string": "none" + }, + "redstone_west": { + "string": "none" + } + } + } +} diff --git a/Tests/BlockStateUpgraderTests.cpp b/Tests/BlockStateUpgraderTests.cpp index 331b892..3a91260 100644 --- a/Tests/BlockStateUpgraderTests.cpp +++ b/Tests/BlockStateUpgraderTests.cpp @@ -53,8 +53,8 @@ namespace { } void testLoading(const BlockStateUpgrader &upgrader, size_t schemaFileCount) { - check(schemaFileCount == 36, "36 schema files loaded"); - check(upgrader.getSchemaCount() == 36, "36 schemas registered"); + check(schemaFileCount == 37, "37 schema files loaded"); + check(upgrader.getSchemaCount() == 37, "37 schemas registered"); const std::vector limited = BlockStateUpgrader::loadSchemas( FALCON_BLOCK_UPGRADE_SCHEMA_DIR, 11);