Updated for 1.6

- Bump Dependency
- Bump target framework to NET6.0
- Replace getExtraMillisecondsPerInGameMinuteForThisLocation with corresponding property
This commit is contained in:
adro 2024-04-08 21:16:11 +02:00
parent f4c9868f6a
commit 9a02f8008c
3 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ namespace Relativity
public class ModEntry : Mod
{
// GTI = GameTickInterval, STP = ShouldTimePass
private static int LocalGTI => 7000 + (Game1.currentLocation?.getExtraMillisecondsPerInGameMinuteForThisLocation() ?? 0);
private static int LocalGTI => 7000 + (Game1.currentLocation?.ExtraMillisecondsPerInGameMinute ?? 0);
private static bool LocalSTP => Game1.shouldTimePass(true);
private readonly Dictionary<long, (bool STP, int GTI)> playerTimeData = new();

View File

@ -1,11 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Pathoschild.Stardew.ModBuildConfig" Version="4.0.1" />
<PackageReference Include="Pathoschild.Stardew.ModBuildConfig" Version="4.1.1" />
</ItemGroup>
</Project>

View File

@ -1,7 +1,7 @@
{
"Name": "Relativity",
"Author": "AdroSlice",
"Version": "1.0.1",
"Version": "1.0.2",
"Description": "Slows down multiplayer time based on how many players would normally not have time pass in singleplayer.",
"UniqueID": "AdroSlice.Relativity",
"EntryDll": "Relativity.dll",