Skip to content

Commit 41f8be6

Browse files
committed
Update to image 0.23.6, closes #333
1 parent 54763da commit 41f8be6

File tree

3 files changed

+35
-49
lines changed

3 files changed

+35
-49
lines changed

Cargo.lock

Lines changed: 33 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ serde = "1.0.104"
2727
serde_json = "1.0.55"
2828
flate2 = { version = "1.0.14", features = ["rust_backend"], default-features = false }
2929
zip = { version = "0.5.6", features = ["deflate"], default-features = false }
30-
image = "0.22.4"
30+
image = "0.23.6"
3131
rand = "0.7.3"
3232
rand_pcg = "0.2.1"
3333
base64 = "0.12.2"

src/render/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ impl TextureManager {
910910
if height == 32 {
911911
// Needs changing to the new format
912912
let mut new = image::DynamicImage::new_rgba8(64, 64);
913-
new.copy_from(&img, 0, 0);
913+
new.copy_from(&img, 0, 0).expect("Invalid png image in skin");
914914
for xx in 0 .. 4 {
915915
for yy in 0 .. 16 {
916916
for section in 0 .. 4 {

0 commit comments

Comments
 (0)