diff --git a/src/components/mapart/greenButtons.js b/src/components/mapart/greenButtons.js index 8ba1c6b..81d01d0 100644 --- a/src/components/mapart/greenButtons.js +++ b/src/components/mapart/greenButtons.js @@ -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`);