Skip to content

Commit

Permalink
Fix map.dat downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
rebane2001 committed Dec 29, 2021
1 parent a81db93 commit 8ff4c30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/mapart/greenButtons.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ class GreenButtons extends Component {
console.log(`Created Mapdat by ${(t1 - t0).toString()}ms`);
numberOfSplitsCalculated++;
const { Mapdat_Bytes, whichMap_x, whichMap_y } = e.data.body;
const NBT_Array_gzipped = gzip(NBT_Array);
const downloadBlob = new Blob([NBT_Array_gzipped], { type: "application/x-minecraft-level" });
const Mapdat_Bytes_gzipped = gzip(Mapdat_Bytes);
const downloadBlob = new Blob([Mapdat_Bytes_gzipped], { type: "application/x-minecraft-level" });
downloadBlobFile(downloadBlob, optionValue_mapdatFilenameUseId
? `map_${(optionValue_mapdatFilenameIdStart + whichMap_y * optionValue_mapSize_x + whichMap_x).toString()}.dat`
: `${uploadedImage_baseFilename}_${whichMap_x.toString()}_${whichMap_y.toString()}.dat`);
Expand Down

0 comments on commit 8ff4c30

Please sign in to comment.