Skip to content

Commit

Permalink
Update MinecraftSession.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
natsurainko committed Aug 27, 2024
1 parent e4d8d14 commit 9a281a0
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Natsurainko.FluentCore/Experimental/Launch/MinecraftSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
using System.Linq;
using System.Threading.Tasks;

/*
namespace Nrk.FluentCore.Experimental.GameManagement.Launch;

/// <summary>
Expand Down Expand Up @@ -185,8 +183,8 @@ public nint GetProcessMainWindowHandle()
if (_mcProcess is null)
throw new InvalidOperationException();

_mcProcess._process.Refresh();
return _mcProcess._process.MainWindowHandle;
_mcProcess.Process.Refresh();
return _mcProcess.Process.MainWindowHandle;
}

#region Step Methods
Expand Down Expand Up @@ -237,7 +235,7 @@ private MinecraftProcess CreateMinecraftProcess()
throw new ArgumentNullException(nameof(_enabledLibraries));

var builder = new MinecraftProcessBuilder(MinecraftInstance)
.SetLibraries(_enabledLibraries)
//.SetLibraries(_enabledLibraries)
.SetAccountSettings(Account, UseDemoUser)
.SetJavaSettings(JavaPath, MaxMemory, MinMemory)
.SetGameDirectory(GameDirectory);
Expand Down Expand Up @@ -276,6 +274,4 @@ public class MinecraftSessionStateChagnedEventArgs(MinecraftSessionState oldStat
public MinecraftSessionState OldState { get; } = oldState;

public MinecraftSessionState NewState { get; } = newState;
}
*/
}

0 comments on commit 9a281a0

Please sign in to comment.