Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-26 02:50:06 +01:00
Fixed a lack of an error message in draw.js.
Dieser Commit ist enthalten in:
Ursprung
360ae06d65
Commit
2bb9a9390f
@ -78,17 +78,21 @@ var sess = context.remember();
|
|||||||
|
|
||||||
context.checkArgs(1, 1, "<image>");
|
context.checkArgs(1, 1, "<image>");
|
||||||
|
|
||||||
var img = ImageIO.read(context.getSafeFile("drawings", argv[1]));
|
var f = context.getSafeFile("drawings", argv[1]);
|
||||||
|
|
||||||
var width = img.getWidth();
|
if (f != null) {
|
||||||
var height = img.getHeight();
|
var img = ImageIO.read(f);
|
||||||
|
|
||||||
var origin = player.getBlockIn();
|
var width = img.getWidth();
|
||||||
|
var height = img.getHeight();
|
||||||
|
|
||||||
for (var x = 0; x < width; x++) {
|
var origin = player.getBlockIn();
|
||||||
for (var y = 0; y < height; y++) {
|
|
||||||
var c = new Color(img.getRGB(x, y));
|
for (var x = 0; x < width; x++) {
|
||||||
var data = findClosestWoolColor(c);
|
for (var y = 0; y < height; y++) {
|
||||||
sess.setBlock(origin.add(x, 0, y), new BaseBlock(35, data));
|
var c = new Color(img.getRGB(x, y));
|
||||||
|
var data = findClosestWoolColor(c);
|
||||||
|
sess.setBlock(origin.add(x, 0, y), new BaseBlock(35, data));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren