mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-11-27 04:00:48 +08:00
Update draw.js
Fixed the non working orientation and palette feature.
This commit is contained in:
parent
0324196b5d
commit
d7ce7a2adf
@ -133,12 +133,12 @@ context.checkArgs(1, 3, "<image> <orientation> <palette>");
|
||||
|
||||
var f = context.getSafeOpenFile("drawings", argv[1], "png", ["png", "jpg", "jpeg", "bmp"]);
|
||||
var sess = context.remember();
|
||||
var upright = argv[2] === "v";
|
||||
var upright = argv[2] == "v";
|
||||
var colors = clothColors;
|
||||
if(argv[3] === "opt") {
|
||||
if(argv[3] == "opt") {
|
||||
colors = clothColorsOpt;
|
||||
player.print("Using optimized palette");
|
||||
} else if(argv[3] === "optHD") {
|
||||
} else if(argv[3] == "optHD") {
|
||||
colors = clothColorsOptHD;
|
||||
player.print("Using optimized HD palette");
|
||||
}
|
||||
@ -165,4 +165,4 @@ if (!f.exists()) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user