Skip to content

Commit 78cef89

Browse files
committed
Update for 1.21
1 parent ea4130d commit 78cef89

17 files changed

+147
-122
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@ Alternatively, you can download a copy of the source code from here on Github, a
2020

2121
### Previous Versions
2222

23-
The app is updated occasionally, to keep in sync with changes made to the latest version of the Minecraft Bedrock game. To use the app at an older version, you can clone the source code at these specific releases:
23+
The app is updated occasionally, to keep in sync with changes made to the latest version of the Minecraft Bedrock game. It is best to use the latest version on the live website. In case you want to use the app at an older version, you can clone the source code at these specific releases:
2424

2525
Minecraft Version | App Code on Github |
2626
| - | - |
27-
| 1.17.0 "Caves & Cliffs Part 1" | [v3.1](https://github.com/gd-codes/mc-pixelart-maker/tree/v3.1) |
28-
| 1.18.0 "Caves & Cliffs Part 2" | [v4.1](https://github.com/gd-codes/mc-pixelart-maker/tree/v4.1) |
29-
| 1.19.0 "Wild Update" | [v4.3](https://github.com/gd-codes/mc-pixelart-maker/tree/v4.3) |
27+
| 1.17.0 "Caves & Cliffs Part 1" | [v3.1](https://github.com/gd-codes/mc-pixelart-maker/releases/tag/v3.1) |
28+
| 1.18.0 "Caves & Cliffs Part 2" | [v4.1](https://github.com/gd-codes/mc-pixelart-maker/releases/tag/v4.1) |
29+
| 1.19.0 "Wild Update" | [v4.3](https://github.com/gd-codes/mc-pixelart-maker/releases/tag/v4.3) |
30+
| 1.20.0 "Trails & Tales" | [v4.5](https://github.com/gd-codes/mc-pixelart-maker/releases/tag/v4.5) |
3031

3132
### Contributing
3233

css/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
background-image: url("../images/headercover.png");
99
background-attachment: fixed;
1010
background-repeat: no-repeat;
11-
background-position: center;
11+
background-position: top;
1212
padding: 120px 20px 120px;
1313
background-size: cover;
1414
max-height: 50%;

images/headercover.png

100755100644
-279 KB
Loading

images/headercover_old.png

-780 KB
Binary file not shown.

images/headercover_old2.png

-968 KB
Binary file not shown.

images/headercover_old3.png

-390 KB
Binary file not shown.

images/headercover_old4.png

-1.02 MB
Binary file not shown.

scripts/data.js

Lines changed: 100 additions & 93 deletions
Large diffs are not rendered by default.

scripts/imageProcessor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ function makeLogo(images) {
230230
var canv = $("#testCanvas")[0], ctx = canv.getContext('2d', alpha=false, willReadFrequently=true);
231231
var logodata = $("#logoImg")[0];
232232
canv.width = 128; canv.height = 128;
233-
if (images == []) {
233+
if (images.length === 0) {
234234
ctx.drawImage(logodata, 0, 0, 128, 128);
235235
} else {
236236
for (var i=0; i<images.length; i++) {

scripts/main.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -624,9 +624,12 @@ function deleteImgForm(uid) {
624624
if (verify) {
625625
$("#link_"+uid).remove();
626626
$("#tabPane_"+uid).remove();
627-
delete PictureData[uid];
628627
deleteSurvivalGuide(uid);
629628
deleteSavedFormData(uid);
629+
setTimeout(function() {
630+
// Remove PictureData only after the other guides and UI!
631+
delete PictureData[uid];
632+
}, 2);
630633
$("#navbarList a.nav-link").first().click();
631634
}
632635
}
@@ -706,7 +709,7 @@ function writeBhvPack(images, uuids) {
706709
description: $("#bpackDescInput").val(),
707710
uuid: uuids[0],
708711
version: [1,0,0],
709-
min_engine_version: [1,20,0]
712+
min_engine_version: [1,21,0]
710713
},
711714
modules: [{
712715
description: "Created with https://gd-codes.github.io/mc-pixelart-maker, on " +

0 commit comments

Comments
 (0)