Skip to content

Commit

Permalink
Reclassify as workaround and make more compact
Browse files Browse the repository at this point in the history
  • Loading branch information
Banane9 committed Jan 24, 2025
1 parent b02a312 commit 2d63873
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 60 deletions.
38 changes: 38 additions & 0 deletions CommunityBugFixCollection/SmoothDraggables.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
using FrooxEngine;
using HarmonyLib;
using MonkeyLoader.Resonite;
using System;
using System.Collections.Generic;
using System.Text;

// Originally released under MIT by LeCloutPanda here:
// https://github.com/LeCloutPanda/SoNoHeadCrash

namespace CommunityBugFixCollection
{
[HarmonyPatchCategory(nameof(SmoothDraggables))]
[HarmonyPatch(typeof(Draggable), nameof(Draggable.OnAwake))]
internal sealed class SmoothDraggables : ResoniteMonkey<SmoothDraggables>
{
public override IEnumerable<string> Authors => base.Authors;

public override bool CanBeDisabled => true;

public static void Postfix(Draggable __instance)
{
if (!Enabled || __instance.LocalUser.HeadDevice != HeadOutputDevice.Headless || !__instance.LocalUser.IsHost)
return;

__instance.RunInUpdates(3, () =>
{
if (__instance.FilterWorldElement() is null)
return;

__instance.DontDrive.Value = true;

Logger.Info(() => $"Set DontDrive to true for Draggable:");
Logger.Info(() => __instance.ParentHierarchyToString());
});
}
}
}
58 changes: 0 additions & 58 deletions CommunityBugFixCollection/SmoothSlidersAndJoints.cs

This file was deleted.

12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ just disable them in the settings in the meantime.
* ColorX Luminance calculations being incorrect for non-linear color profiles (https://github.com/Yellow-Dog-Man/Resonite-Issues/issues/281)
* Non-HDR variants of Color(X) channel addition not clamping (https://github.com/Yellow-Dog-Man/Resonite-Issues/issues/316)
* Color Profile not being preserved on all operations (https://github.com/Yellow-Dog-Man/Resonite-Issues/issues/318)
* Sliders and Joints snapping in sessions hosted by a headless (https://github.com/Yellow-Dog-Man/Resonite-Issues/issues/399)
* ProtoFlux Node names containing `ColorX` being spaced wrong (https://github.com/Yellow-Dog-Man/Resonite-Issues/issues/496)
* The selected Home World in the Inventory not being highlighted as a favorite (https://github.com/Yellow-Dog-Man/Resonite-Issues/issues/503)
* The MaterialGizmo being scaled twice when using Edit on the Material Tool (https://github.com/Yellow-Dog-Man/Resonite-Issues/issues/528)
Expand All @@ -36,4 +35,13 @@ just disable them in the settings in the meantime.
* URLs to text files or Resonite Packages failing to import instead of appearing as a hyperlink (https://github.com/Yellow-Dog-Man/Resonite-Issues/issues/785)
* References in multiple duplicated or transferred-between-worlds items breaking (https://github.com/Yellow-Dog-Man/Resonite-Issues/issues/984)
* UserInspectors not listing existing users in the session for non-host users (https://github.com/Yellow-Dog-Man/Resonite-Issues/issues/1964)
* Animators updating all associated fields every frame while enabled but not playing (https://github.com/Yellow-Dog-Man/Resonite-Issues/issues/3480)
* Animators updating all associated fields every frame while enabled but not playing (https://github.com/Yellow-Dog-Man/Resonite-Issues/issues/3480)


## Workarounds

The issues that have workarounds in this mod will be linked in the following list.
If any of them have been closed and not removed from the mod,
just disable them in the settings in the meantime.

* Sliders and Joints snapping in sessions hosted by a headless (https://github.com/Yellow-Dog-Man/Resonite-Issues/issues/399)

0 comments on commit 2d63873

Please sign in to comment.