We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc7df11 commit 4b36a6bCopy full SHA for 4b36a6b
1 file changed
src/ColorMC.Gui/UI/Model/GameEdit/GameEditTab4Model.cs
@@ -1,5 +1,6 @@
1
using System;
2
using System.Collections.Generic;
3
+using System.IO;
4
using System.Linq;
5
using System.Text;
6
using System.Threading.Tasks;
@@ -832,7 +833,7 @@ public async void SetProjectId(ModNodeModel mod)
832
833
{
834
return;
835
}
- else if (!pid || !fid)
836
+ else if (pid || fid)
837
838
Window.Show(LangUtils.Get("GameEditWindow.Tab4.Text51"));
839
@@ -846,8 +847,13 @@ public async void SetProjectId(ModNodeModel mod)
846
847
848
849
else
- {
850
+ {
851
+ info.File = Path.GetFileName(mod.Local);
852
mod.Obj1 = info;
853
+ if (!_obj.Mods.TryAdd(info.ModId, info))
854
855
+ _obj.Mods[info.ModId] = info;
856
+ }
857
mod.Update();
858
859
0 commit comments