mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
Add files via upload
This commit is contained in:
1 parent
a99a551a24
commit
e329f5e6e0
45 files changed
+12128
No files matched your search
@@ -0,0 +1,22 @@
|
||||
using HarmonyLib;
|
||||
|
||||
namespace TOHE.Patches;
|
||||
|
||||
[HarmonyPatch(typeof(Constants), nameof(Constants.GetBroadcastVersion))]
|
||||
class ServerUpdatePatch
|
||||
{
|
||||
public static bool Prefix(ref int __result)
|
||||
{
|
||||
if (GameStates.IsLocalGame)
|
||||
{
|
||||
Logger.Info($"IsLocalGame: {__result}", "VersionServer");
|
||||
return true;
|
||||
}
|
||||
|
||||
// Changing server version for AU mods
|
||||
__result = Constants.GetVersion(2222, 0, 0, 0);
|
||||
|
||||
Logger.Info($"IsOnlineGame: {__result}", "VersionServer");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user