From 4b19a9f434ebcbfb512a60380dd43847c2bf6d1c Mon Sep 17 00:00:00 2001 From: glax Date: Sun, 28 Jan 2024 17:57:53 +0100 Subject: [PATCH] Fix wrong api bug --- CShocker/CShocker.csproj | 2 +- CShocker/Shockers/APIS/OpenShockHttp.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CShocker/CShocker.csproj b/CShocker/CShocker.csproj index d4338fc..1478b7c 100644 --- a/CShocker/CShocker.csproj +++ b/CShocker/CShocker.csproj @@ -7,7 +7,7 @@ Glax https://github.com/C9Glax/CShocker git - 1.3.6 + 1.3.7 diff --git a/CShocker/Shockers/APIS/OpenShockHttp.cs b/CShocker/Shockers/APIS/OpenShockHttp.cs index c755ed6..a66fb83 100644 --- a/CShocker/Shockers/APIS/OpenShockHttp.cs +++ b/CShocker/Shockers/APIS/OpenShockHttp.cs @@ -56,7 +56,7 @@ public class OpenShockHttp : HttpShocker protected override void ControlInternal(ControlAction action, string shockerId, int intensity, int duration) { - HttpRequestMessage request = new (HttpMethod.Post, $"{Endpoint}/1/shockers/control") + HttpRequestMessage request = new (HttpMethod.Post, $"{Endpoint}/2/shockers/control") { Headers = {