Skip to content

Commit

Permalink
Fixes for SE 2.105
Browse files Browse the repository at this point in the history
  • Loading branch information
thorwin99 committed Oct 14, 2024
1 parent 6c43eb6 commit 0c42bc7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ protected override MyProceduralCell GenerateCellSeeds(Vector3I cellId)
position *= subCellSize;
position += ((Vector3D)cellId) * CELL_SIZE;

if (!MyEntities.IsInsideWorld(position) || (settings.WorldSize >= 0 && position.Length() > settings.WorldSize)) continue;
if (!MySession.IsInsideWorld(position) || (settings.WorldSize >= 0 && position.Length() > settings.WorldSize)) continue;

var ring = GetAsteroidObjectAt(position);

Expand Down
9 changes: 4 additions & 5 deletions SEWorldGenPlugin/Patches/CopyDirectoryPatch.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
using HarmonyLib;
using SEWorldGenPlugin.Utilities;
using System.IO;
using VRage.Utils;
using VRage.Private;

namespace SEWorldGenPlugin.Patches
{
/// <summary>
/// Class to patch the <see cref="MyUtils.CopyDirectory"/> function to also copy sub directories.
/// Class to patch the <see cref="MyKeenUtils.CopyDirectory"/> function to also copy sub directories.
/// </summary>
public class CopyDirectoryPatch : HarmonyPatchBase
{
Expand All @@ -24,7 +23,7 @@ public static void Postfix(string source, string destination)
string destFileName = Path.Combine(destination, fileName);

Directory.CreateDirectory(destFileName);
MyUtils.CopyDirectory(text, destFileName);
MyKeenUtils.CopyDirectory(text, destFileName);
}
}
}
Expand All @@ -33,7 +32,7 @@ public override void ApplyPatch(Harmony harmony)
{
base.ApplyPatch(harmony);

var baseMethod = typeof(MyUtils).GetMethod("CopyDirectory");
var baseMethod = typeof(MyKeenUtils).GetMethod("CopyDirectory");
var postfix = typeof(CopyDirectoryPatch).GetMethod("Postfix");

harmony.Patch(baseMethod, postfix: new HarmonyMethod(postfix));
Expand Down
4 changes: 2 additions & 2 deletions SEWorldGenPlugin/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// indem Sie "*" wie unten gezeigt eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.1.7.0")]
[assembly: AssemblyFileVersion("2.1.7.0")]
[assembly: AssemblyVersion("2.1.7.1")]
[assembly: AssemblyFileVersion("2.1.7.1")]

0 comments on commit 0c42bc7

Please sign in to comment.