NorbiPeti
d27bcee8d5
- Fixed compilation errors - Fixed patching errors and added missing anti-cheat patch - Added check to verify that the init data has been removed from blocks once they are placed in game - Removed block place event deduplication as it seems to be not needed anymore - Fixed async tests not properly running - Added Player.State - Attempted to fix seat entering/leaving (we can only send inputs in client code) - Fixed the weak dictionary ContainsKey returning true even if the item is no longer there
19 lines
No EOL
526 B
C#
19 lines
No EOL
526 B
C#
using System.Reflection;
|
|
using HarmonyLib;
|
|
|
|
namespace TechbloxModdingAPI.Input
|
|
{
|
|
[HarmonyPatch]
|
|
public static class FakeInputPatch
|
|
{
|
|
public static void Prefix()
|
|
{
|
|
FakeInput.inputEngine.HandleCustomInput(); // This gets called right before the input is sent to the server
|
|
}
|
|
|
|
public static MethodBase TargetMethod()
|
|
{
|
|
return AccessTools.Method("RobocraftX.Multiplayer.Input.DeterministicInputRecorderEngine:RecordDeterministicInput");
|
|
}
|
|
}
|
|
} |