mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-29 02:13:01 +00:00
fixup
This commit is contained in:
parent
3c279559f5
commit
d60d3073bd
1 changed files with 2 additions and 1 deletions
|
@ -84,7 +84,8 @@ function pixels2tsv(pixels) {
|
|||
for(let y = 0; y < pixels.height; y++) {
|
||||
let row = [];
|
||||
for(let x = 0; x < pixels.width; x++) {
|
||||
row.push((pixels.data[((y*pixels.width + x) * 4) + 3] / 255).toFixed(3));
|
||||
// No need to rescale here - this is done automagically by WorldEditAdditions.
|
||||
row.push(pixels.data[((y*pixels.width + x) * 4) + 3] / 255);
|
||||
}
|
||||
result += row.join(`\t`) + `\n`;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue