mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-12 04:23:54 +00:00
Update draw.js
This commit is contained in:
@ -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()) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user