Launcher icon indicating copy to clipboard operation
Launcher copied to clipboard

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

Open kb-1000 opened this issue 5 years ago • 5 comments

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:

screenshot

Additional Info:

kb-1000 avatar Apr 02 '20 12:04 kb-1000

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)

Merith-TK avatar Aug 30 '21 12:08 Merith-TK

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

Zetabite avatar Sep 09 '21 00:09 Zetabite

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 avatar Sep 09 '21 05:09 kb-1000

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

kb-1000 avatar Sep 09 '21 05:09 kb-1000

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

Zetabite avatar Sep 09 '21 12:09 Zetabite