Skip to content

Commit

Permalink
Hotfix1
Browse files Browse the repository at this point in the history
  • Loading branch information
XLittleLeft committed Jan 28, 2025
1 parent d3c31cb commit 192d52d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion HelpSense/Commands/VersionCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class VersionCommand : ICommand

public string[] Aliases => ["VersionInfo", "VI"];

public string Description => "查询HelpSense插件版本和信息";
public string Description => "查询HelpSense插件版本和信息-Plugin Info";

public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out string response)
{
Expand Down
7 changes: 6 additions & 1 deletion HelpSense/Patches/ReloaderModulePatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,17 @@ public static bool Prefix(AnimatorReloaderModuleBase __instance , NetworkReader

if (!__instance.TryContinueDeserialization(reader, Firearm.ItemSerial, header, AutosyncMessageType.Cmd))
{
reader.Position -= sizeof(byte);
return true;
}

if (header is ReloaderMessageHeader.Reload && IReloadUnloadValidatorModule.ValidateReload(Firearm))
{
if (Firearm.ItemTypeId is ItemType.ParticleDisruptor) return true;
if (Firearm.ItemTypeId is ItemType.ParticleDisruptor)
{
reader.Position -= sizeof(byte);
return true;
}
if (Firearm.TryGetModule<MagazineModule>(out var MagazineModule))
{
switch (Plugin.Instance.Config.InfiniteAmmoType)
Expand Down
2 changes: 1 addition & 1 deletion HelpSense/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public class Plugin
public ItemBase SCP1056Base;

public static System.Version PluginVersion => new(1, 4, 0);
public static DateTime LastUpdateTime => new(2025, 1, 25, 23, 04, 00);
public static DateTime LastUpdateTime => new(2025, 1, 28, 13, 27, 25);
public static System.Version RequiredGameVersion => new(14, 0, 2);

[PluginEntryPoint("HelpSense", "1.4.0", "HelpSense综合服务器插件", "X小左")]
Expand Down

0 comments on commit 192d52d

Please sign in to comment.