Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #17

Merged
merged 4 commits into from
Jun 25, 2024
Merged

Dev #17

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
![Winch](./banner.png)

[![Discord](https://img.shields.io/discord/1097191320935735346?style=for-the-badge)](https://discord.gg/qFqPuTUAmD)
[![GitHub all releases](https://img.shields.io/github/downloads/Hacktix/Winch/total?style=for-the-badge)](https://github.com/DREDGE-Mods/Winch/releases)
[![GitHub all releases](https://img.shields.io/github/downloads/DREDGE-Mods/Winch/total?style=for-the-badge)](https://github.com/DREDGE-Mods/Winch/releases)

Winch is a mod loader for Dredge made by Hacktix. This is a modified version for use with the Dredge mod manager.

Expand Down
2 changes: 1 addition & 1 deletion Winch/Serialization/DredgeTypeHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static Color GetColorFromJsonObject(object value)
private static Color GetColorFromJsonDictionary(Dictionary<string, int> color)
{
int r = 0, g = 0, b = 0, a = 255;
if (color.TryGetValue("g", out var value0)) r = value0;
if (color.TryGetValue("r", out var value0)) r = value0;
if (color.TryGetValue("g", out var value1)) g = value1;
if (color.TryGetValue("b", out var value2)) b = value2;
if (color.TryGetValue("a", out var value3)) a = value3;
Expand Down
Loading