Skip to content

Commit 668b380

Browse files
committed
Actually use the new version data
1 parent 66710ce commit 668b380

2 files changed

Lines changed: 5 additions & 9 deletions

File tree

ImageMap4.CMD/Models/BedrockWorld.cs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,12 @@ public override void AddStructures(IEnumerable<StructureGrid> structures, IInven
5858
long? id = mapids[x, structure.GridHeight - y - 1];
5959
if (id.HasValue)
6060
{
61+
var mapitem = Version.CreateMapItem(id.Value);
62+
mapitem.Name = "Item";
6163
blockdata.Add(new NbtCompound((y * structure.GridWidth + x).ToString()) {
6264
new NbtCompound("block_entity_data") {
6365
new NbtString("id", structure.GlowingFrames ? "GlowItemFrame" : "ItemFrame"),
64-
new NbtCompound("Item") {
65-
new NbtString("Name", "minecraft:filled_map"),
66-
new NbtByte("Count", 1),
67-
new NbtCompound("tag") {
68-
new NbtLong("map_uuid", id.Value)
69-
}
70-
}
66+
mapitem
7167
}
7268
});
7369
}

ImageMap4.CMD/Resources/versions.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ bedrock:
2424
check:
2525
version: [1,6]
2626
map_item:
27-
id: 'minecraft:map'
27+
Name: 'minecraft:map'
2828
Count: 1b
2929
tag:
3030
map_uuid: '@id'
3131
- name: "1.16+"
3232
check:
3333
version: [1,16,100]
3434
map_item:
35-
id: 'minecraft:filled_map'
35+
Name: 'minecraft:filled_map'
3636
Count: 1b
3737
tag:
3838
map_uuid: '@id'

0 commit comments

Comments
 (0)