Skip to content

Commit

Permalink
Fix 1.20.2 and modded older versions datfile
Browse files Browse the repository at this point in the history
  • Loading branch information
rebane2001 committed Nov 16, 2023
1 parent 2301991 commit cb18e52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/mapart/workers/nbt.jsworker
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ class Map_Mapdat {
scale: { type: TagTypes.byte, value: 0 },
dimension: {
type: dataVersion >= 2566 ? TagTypes.string : TagTypes.byte,
value: dataVersion >= 2566 ? "minecraft:mapartcraft" : dataVersion > 1343 ? 0 : -128,
value: dataVersion >= 2566 ? "minecraft:overworld" : dataVersion > 1343 ? 0 : -128,
},
unlimitedTracking: { type: TagTypes.byte, value: 0 },
trackingPosition: { type: TagTypes.byte, value: 0 },
Expand All @@ -681,6 +681,7 @@ class Map_Mapdat {
colors: { type: TagTypes.byteArray, value: new Uint8Array(16384) },
},
},
DataVersion: { type: TagTypes.int, value: dataVersion },
},
};
}
Expand Down

0 comments on commit cb18e52

Please sign in to comment.