Skip to content

Commit

Permalink
Release v1.4.10
Browse files Browse the repository at this point in the history
  • Loading branch information
IAmBatby committed Feb 13, 2025
1 parent ce5239d commit 1745a53
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 8 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
**Changelog**
--

**<details><summary>Version 1.4.10</summary>**

**<details><summary>Fixes</summary>**

* Small hotfix

</details>

</details>

**<details><summary>Version 1.4.9</summary>**

**<details><summary>Fixes</summary>**
Expand Down
12 changes: 6 additions & 6 deletions LethalLevelLoader/General/Patches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ internal static class Patches
internal static bool IsServer => NetworkManager.Singleton != null && NetworkManager.Singleton.IsServer;

//Caching this because I need it for checks while the local client is disconnecting which may make direct comparisons inconsistent.
internal static ulong currentClientID;
internal static ulong currentClientId;

//Singletons and such for these are set in each classes Awake function, But they all are accessible on the first awake function of the earliest one of these four managers awake function, so i grab them directly via findobjectoftype to safely access them as early as possible.
public static StartOfRound StartOfRound { get; internal set; }
Expand Down Expand Up @@ -174,7 +174,7 @@ internal static void StartOfRoundAwake_Prefix(StartOfRound __instance)
SceneManager.sceneLoaded += OnSceneLoaded;
SceneManager.sceneLoaded += EventPatches.OnSceneLoaded;

currentClientID = NetworkManager.Singleton.LocalClientId;
currentClientId = NetworkManager.Singleton.LocalClientId;

//Removing the broken cardboard box item please understand
//Scrape Vanilla For Content References
Expand Down Expand Up @@ -665,16 +665,16 @@ internal static void StartOfRoundOnClientConnect_Postfix()
}

[HarmonyPatch(typeof(StartOfRound), nameof(StartOfRound.OnClientDisconnect)), HarmonyPostfix, HarmonyPriority(priority)]
internal static void StartOfRoundOnClientDisconnect_Postfix(ulong clientID)
internal static void StartOfRoundOnClientDisconnect_Postfix(ulong clientId)
{
if (clientID != currentClientID)
if (clientId != currentClientId)
NetworkBundleManager.Instance.OnClientsChangedRefresh();
}

[HarmonyPatch(typeof(NetworkConnectionManager), nameof(NetworkConnectionManager.OnClientDisconnectFromServer)), HarmonyPostfix, HarmonyPriority(priority)]
internal static void NetworkConnectionManagerOnClientDisconnectFromServer_Postfix(ulong clientID)
internal static void NetworkConnectionManagerOnClientDisconnectFromServer_Postfix(ulong clientId)
{
if (clientID != currentClientID)
if (clientId != currentClientId)
NetworkBundleManager.Instance.OnClientsChangedRefresh();
}

Expand Down
2 changes: 2 additions & 0 deletions LethalLevelLoader/Loaders/DungeonLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ internal static void PrepareDungeon()

//PatchDungeonSize(dungeonGenerator, currentExtendedLevel, currentExtendedDungeonFlow);

dungeonGenerator.retryCount = 50; //I shouldn't really do this but I'm curious if it silently helps some custom interiors

This comment was marked as off-topic.

Copy link
@CoolLKKPS

CoolLKKPS Feb 13, 2025

@AudioKnight maybe this thing actually work in ur moon? still hard to believe maybe i missing something... AudioKnight/Starlancer#48


if (currentExtendedDungeonFlow.OverrideTilePlacementBounds)
{
dungeonGenerator.RestrictDungeonToBounds = true;
Expand Down
2 changes: 1 addition & 1 deletion LethalLevelLoader/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class Plugin : BaseUnityPlugin
{
public const string ModGUID = "imabatby.lethallevelloader";
public const string ModName = "LethalLevelLoader";
public const string ModVersion = "1.4.9";
public const string ModVersion = "1.4.10";

internal static Plugin Instance;

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "LethalLevelLoader",
"version_number": "1.4.9",
"version_number": "1.4.10",
"website_url": "https://github.com/IAmBatby/LethalLevelLoader",
"description": "A Custom API to support the manual and dynamic integration of all forms of custom content in Lethal Company. (v69 Compatible)",
"dependencies": [
Expand Down

0 comments on commit 1745a53

Please sign in to comment.