Skip to content

Commit b262601

Browse files
committed
new fix
1 parent 78b521b commit b262601

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

CopiedLobbyMess/CopiedLobbyMess.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,18 @@ protected override void Load()
2626

2727
#region Functions
2828
public static int GetWorkshopCount() =>
29-
(String.Join(",", Provider.serverWorkshopFileIDs.Select(x => x.ToString()).ToArray()).Length - 1) / 120 + 1;
29+
(String.Join(",", Provider.getServerWorkshopFileIDs().Select(x => x.ToString()).ToArray()).Length - 1) / 120 + 1;
3030

3131
public static int GetConfigurationCount() =>
3232
(String.Join(",", typeof(ModeConfigData).GetFields()
33-
.SelectMany(x => x.GetValue(Provider.modeConfigData).GetType().GetFields().Select(y => y.GetValue(x.GetValue(Provider.modeConfigData))))
33+
.SelectMany(x => x.FieldType.GetFields().Select(y => y.GetValue(x.GetValue(Provider.modeConfigData))))
3434
.Select(x => x is bool v ? v ? "T" : "F" : (String.Empty + x)).ToArray()).Length - 1) / 120 + 1;
3535

36-
3736
public void OnPostLevelLoaded(int xd) => ModifyLobbyInfo();
3837

3938
private void ModifyLobbyInfo()
4039
{
41-
bool workshop = Provider.serverWorkshopFileIDs.Count > 0;
40+
bool workshop = Provider.getServerWorkshopFileIDs().Count > 0;
4241

4342
#region Workshop
4443
if (Configuration.Instance.HideWorkshop)
@@ -140,7 +139,7 @@ private void ModifyLobbyInfo()
140139
SteamGameServer.SetBotPlayerCount(1);
141140
if (!Configuration.Instance.HidePlugins && !Configuration.Instance.MessPlugins)
142141
SteamGameServer.SetKeyValue("rocketplugins", string.Join(",", R.Plugins.GetPlugins().Select(p => p.Name).ToArray()));
143-
string version = ModuleHook.modules.FirstOrDefault(a => a.config.Name == "Rocket.Unturned")?.config.Version ?? "0.0.0.69";
142+
string version = ModuleHook.modules.Find(a => a.config.Name == "Rocket.Unturned")?.config.Version ?? "0.0.0.69";
144143
SteamGameServer.SetKeyValue("rocket", version);
145144
}
146145
#endregion

CopiedLobbyMess/CopiedLobbyMess.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@
3030
<WarningLevel>4</WarningLevel>
3131
</PropertyGroup>
3232
<ItemGroup>
33-
<Reference Include="Assembly-CSharp">
34-
<HintPath>..\Libraries\Assembly-CSharp.dll</HintPath>
33+
<Reference Include="Assembly-CSharp, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
34+
<SpecificVersion>False</SpecificVersion>
35+
<HintPath>..\..\..\..\Unity\Editor\stm\steamapps\common\Unturned\Unturned_Data\Managed\Assembly-CSharp.dll</HintPath>
3536
</Reference>
3637
<Reference Include="Assembly-CSharp-firstpass">
3738
<HintPath>..\Libraries\Assembly-CSharp-firstpass.dll</HintPath>

0 commit comments

Comments
 (0)