Skip to content

Commit

Permalink
Downgrade lever/door logging from error to warn
Browse files Browse the repository at this point in the history
  • Loading branch information
zealsprince committed Apr 21, 2024
1 parent ca675e9 commit e3433f0
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# Changelog #

## 1.8.5 ##

- Downgrade not finding lever/door object logging from `error` to `warn` levels

## 1.8.4 ##

- Fix `Liquidation` being a level that the navigation malfunction could route to
Expand Down
6 changes: 4 additions & 2 deletions Malfunctions/Patches/StartOfRoundPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ private static void RestoreAfterMalfunctions()

if (leverDevice == null)
{
Plugin.logger.LogError("Failed to find lever device object.");
Plugin.logger.LogWarning("Failed to find lever device object.");
}
else
{
Expand All @@ -603,7 +603,9 @@ private static void RestoreAfterMalfunctions()
// Restore the lights from the door controls.
if (elevatorPanelScreen == null)
{
Plugin.logger.LogError("Failed to find door panel screen from previous reference.");
Plugin.logger.LogWarning(
"Failed to find door panel screen from previous reference."
);
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion Malfunctions/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class Plugin : BaseUnityPlugin
{
public const string ModGUID = "com.zealsprince.malfunctions";
public const string ModName = "Malfunctions";
public const string ModVersion = "1.8.4";
public const string ModVersion = "1.8.5";

// These need to be lowercase because we're passing through the protected properties.
public static ManualLogSource logger;
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

<img src="https://img.shields.io/badge/version-1.8.4-0AF" /></a>
<img src="https://img.shields.io/badge/version-1.8.5-0AF" /></a>
<img src="https://img.shields.io/badge/lc--version-v50-000" /></a>

![banner](https://github.com/zealsprince/lc-malfunctions/assets/1859270/f2d781e8-2b79-4d80-9e49-d688cc7b99f2)
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": "Malfunctions",
"version_number": "1.8.4",
"version_number": "1.8.5",
"website_url": "https://github.com/zealsprince/lc-malfunctions",
"description": "Adds random malfunctions to the ship and intends to improve the core game loop with interesting new events.",
"dependencies": [
Expand Down

0 comments on commit e3433f0

Please sign in to comment.