diff --git a/gen_palette.py b/gen_palette.py index 4f2329a..a0a9d65 100755 --- a/gen_palette.py +++ b/gen_palette.py @@ -61,7 +61,7 @@ for g in range(16): palette = (palette_raw * 255 + 0.5).astype(np.uint8) print(palette) -imageio.imwrite("palette.png", palette.reshape(16,16,3)) +imageio.imwrite("textures/256_dyes_palette.png", palette.reshape(16,16,3)) color_list = open("colors.dat", "wb") color_list.write(compress(bytes(palette))) diff --git a/init.lua b/init.lua index 636255c..54e45ce 100644 --- a/init.lua +++ b/init.lua @@ -40,7 +40,7 @@ minetest.register_craftitem("256_dyes:dye", { groups = {}, inventory_image = "256_dyes_dye.png", wield_image = "256_dyes_dye.png", - palette = "256_dyes_palette_2.png", + palette = "256_dyes_palette.png", stack_max = 99, color = "#400000", on_use = change_variation, diff --git a/textures/256_dyes_palette_2.png b/textures/256_dyes_palette.png similarity index 65% rename from textures/256_dyes_palette_2.png rename to textures/256_dyes_palette.png index 1e39799..cc7703f 100644 Binary files a/textures/256_dyes_palette_2.png and b/textures/256_dyes_palette.png differ diff --git a/textures/256_dyes_palette_1.png b/textures/256_dyes_palette_1.png deleted file mode 100644 index b63f513..0000000 Binary files a/textures/256_dyes_palette_1.png and /dev/null differ