MultiMC / Launcher

A custom launcher for Minecraft that allows you to easily manage multiple installations of Minecraft at once
https://multimc.org/
Other
4.32k stars 883 forks source link

Importing MultiMC instances with icons with the same names as built in icons overrides built in icons #3068

Open kb-1000 opened 4 years ago

kb-1000 commented 4 years ago

System Information

MultiMC version: 0.6.12-develop-1434

Operating System: Windows 10 1909

Summary of the issue or suggestion:

What should happen:

The instance should get imported, with the icon in its ZIP, but not change the icons of other instances.

Steps to reproduce the issue (Add more if needed):

  1. Create instance with MultiMC infinity icon

  2. Import ScottoMotto's https://www.mediafire.com/file/mw8vl1txt7fkg1i/20w14Infinite_Fabric.zip/file

Suspected cause:

Logs/Screenshots:

https://cdn.discordapp.com/attachments/134843027553255425/695226578912936026/unknown.png

Additional Info:

Merith-TK commented 3 years ago

Since my issue was closed as it was a duplicate

possible fix for this, if $INST_DIR contains <iconKey>.png/jpg/jpeg display that icon, rather than updating the global index of icons (or whatever it is called instead)

Zetabite commented 3 years ago

From what i read in the code, overwriting the builtin ones is intended

kb-1000 commented 3 years ago

I don't agree here... sure, it's probably intended that you as the user can override them. But do you really want that importing some random instance that someone with such a setup exported to overwrite the icon of all existing instances that use it? I don't. I had that happen with an instance replacing the infinity icon once.

kb-1000 commented 3 years ago

reading up, that's actually what made me create this issue

Zetabite commented 3 years ago

well, with my suggested PR, there would most likely, no longer be overwritten icons, unless you actively rename the icon