Skip to content

Commit

Permalink
Fix ruleset crash on entering music screen
Browse files Browse the repository at this point in the history
  • Loading branch information
EVAST9919 committed Mar 11, 2024
1 parent 98db514 commit 950ae1b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</ItemGroup>
<PropertyGroup Label="Project">
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace>osu.Game.Rulesets.Sandbox.Tests</RootNamespace>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion osu.Game.Rulesets.Sandbox/SandboxRuleset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public partial class SandboxRuleset : Ruleset

public override string ShortName => "sandbox";

public override string PlayingVerb => "Doing random stuff";
public override string PlayingVerb => "Sandboxing";

public override Drawable CreateIcon() => new SandboxIcon(this);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ protected override void Update()
base.Update();

var track = Beatmap.Value?.Track;
progress.Current.Value = (track == null || track.Length == 0) ? 0 : (track.CurrentTime / track.Length);
progress.Progress = (track == null || track.Length == 0) ? 0 : (track.CurrentTime / track.Length);
}
}
}
4 changes: 2 additions & 2 deletions osu.Game.Rulesets.Sandbox/osu.Game.Rulesets.Sandbox.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup Label="Project">
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<AssemblyTitle>osu.Game.Rulesets.Sandbox</AssemblyTitle>
<OutputType>Library</OutputType>
<PlatformTarget>AnyCPU</PlatformTarget>
Expand All @@ -11,6 +11,6 @@
<EmbeddedResource Include="Resources\**\*" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ppy.osu.Game" Version="2024.131.0" />
<PackageReference Include="ppy.osu.Game" Version="2024.312.0" />
</ItemGroup>
</Project>

0 comments on commit 950ae1b

Please sign in to comment.