Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 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: 2 additions & 0 deletions CommunityBugFixCollection/Contributors.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@ internal static class Contributors
public static string[] LeCloutPanda { get; } = ["LeCloutPanda"];

public static string[] Nytra { get; } = ["Nytra"];

public static string[] __Choco__ { get; } = ["__Choco__"];
}
}
28 changes: 28 additions & 0 deletions CommunityBugFixCollection/ValueModDecimal.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using Elements.Core;
using FrooxEngine;
using HarmonyLib;
using MonkeyLoader.Resonite;
using System;
using System.Collections.Generic;
using System.Text;

namespace CommunityBugFixCollection
{
[HarmonyPatchCategory(nameof(ValueModDecimal))]
[HarmonyPatch(typeof(Elements.Core.Coder<Decimal>), nameof(Elements.Core.Coder<Decimal>.Mod))]
internal sealed class ValueModDecimal : ResoniteMonkey<ValueModDecimal>
{
public override IEnumerable<string> Authors => Contributors.__Choco__;

public override bool CanBeDisabled => true;

private static bool Prefix(Decimal a, Decimal b)
{
if (b == 0)
{
return false;
}
return true;
}
}
}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ just disable them in the settings in the meantime.
* Direct cursor size becoming very large when snapped to an object much closer than the true cursor (https://github.com/Yellow-Dog-Man/Resonite-Issues/issues/3654)
* Grid World floor shaking on AMD and Intel GPUs (https://github.com/Yellow-Dog-Man/Resonite-Issues/issues/3829)
* DuplicateSlot ProtoFlux node crashes game when if OverrideParent is identical to Template (https://github.com/Yellow-Dog-Man/Resonite-Issues/issues/3950)
* ValueMod<Decimal> node crashes the game when B input is set to zero or disconnected. (https://github.com/Yellow-Dog-Man/Resonite-Issues/issues/2746)

Fixes with no issue (that could be found).
* Content of notification being off-center.
Expand All @@ -72,4 +73,4 @@ The feature request issues that have been implemented in this mod will be linked
If any of them have been implemented and not removed from the mod,
just disable them in the settings in the meantime.

* _Copy to Clipboard_ action on any non-reference member fields in Inspectors (https://github.com/Yellow-Dog-Man/Resonite-Issues/issues/810)
* _Copy to Clipboard_ action on any non-reference member fields in Inspectors (https://github.com/Yellow-Dog-Man/Resonite-Issues/issues/810)