(int[] colors)
| 1731 | } |
| 1732 | |
| 1733 | private static void setMapColors(int[] colors) |
| 1734 | { |
| 1735 | if (colors != null) |
| 1736 | { |
| 1737 | MapColor[] amapcolor = MapColor.mapColorArray; |
| 1738 | boolean flag = false; |
| 1739 | |
| 1740 | for (int i = 0; i < amapcolor.length && i < colors.length; ++i) |
| 1741 | { |
| 1742 | MapColor mapcolor = amapcolor[i]; |
| 1743 | |
| 1744 | if (mapcolor != null) |
| 1745 | { |
| 1746 | int j = colors[i]; |
| 1747 | |
| 1748 | if (j >= 0 && mapcolor.colorValue != j) |
| 1749 | { |
| 1750 | mapcolor.colorValue = j; |
| 1751 | flag = true; |
| 1752 | } |
| 1753 | } |
| 1754 | } |
| 1755 | |
| 1756 | if (flag) |
| 1757 | { |
| 1758 | Minecraft.getMinecraft().getTextureManager().reloadBannerTextures(); |
| 1759 | } |
| 1760 | } |
| 1761 | } |
| 1762 | |
| 1763 | private static void dbg(String str) |
| 1764 | { |
no test coverage detected