mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-24 13:31:45 -08:00
Color script fixes
This commit is contained in:
parent
966321baca
commit
c4d5314a1a
2 changed files with 3 additions and 3 deletions
|
|
@ -27,8 +27,8 @@ def transformColors = { List<List<String>> list ->
|
|||
}
|
||||
|
||||
newColors.each{ color ->
|
||||
colorMap.put(Color.argb8888(color), newColors)
|
||||
colorIndexMap.put(Color.argb8888(color), newColors.indexOf(color))
|
||||
colorMap.put(color.argb8888(), newColors)
|
||||
colorIndexMap.put(color.argb8888(), newColors.indexOf(color))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ class Image{
|
|||
Color getColor(int x, int y){
|
||||
if(!Structs.inBounds(x, y, width, height)) return color.set(0, 0, 0, 0);
|
||||
int i = image.getRGB(x, y);
|
||||
Color.argb8888ToColor(color, i);
|
||||
color.argb8888(i);
|
||||
return color;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue