diff --git a/osu.Game.Rulesets.Catch/Mods/CatchModFloatingFruits.cs b/osu.Game.Rulesets.Catch/Mods/CatchModFloatingFruits.cs index 4e25739521..4e34cbe9e2 100644 --- a/osu.Game.Rulesets.Catch/Mods/CatchModFloatingFruits.cs +++ b/osu.Game.Rulesets.Catch/Mods/CatchModFloatingFruits.cs @@ -1,11 +1,13 @@ using osu.Framework.Graphics; using osu.Framework.Graphics.Sprites; +using osu.Game.Rulesets.Catch.Objects; using osu.Game.Rulesets.Mods; +using osu.Game.Rulesets.UI; using osu.Game.Screens.Play; namespace osu.Game.Rulesets.Catch.Mods { - public class CatchModFloatingFruits : Mod, IApplicableToPlayer + public class CatchModFloatingFruits : Mod, IApplicableToDrawableRuleset { public override string Name => "Floating Fruits"; public override string Acronym => "FF"; @@ -13,11 +15,12 @@ namespace osu.Game.Rulesets.Catch.Mods public override double ScoreMultiplier => 1; public override IconUsage? Icon => FontAwesome.Brands.Fly; - public void ApplyToPlayer(Player player) + public void ApplyToDrawableRuleset(DrawableRuleset drawableRuleset) { - player.DrawableRuleset.Anchor = Anchor.Centre; - player.DrawableRuleset.Origin = Anchor.Centre; - player.DrawableRuleset.Scale = new osuTK.Vector2(1, -1); + drawableRuleset.Anchor = Anchor.Centre; + drawableRuleset.Origin = Anchor.Centre; + drawableRuleset.Scale = new osuTK.Vector2(1, -1); } + } } diff --git a/osu.Game/Screens/Play/Player.cs b/osu.Game/Screens/Play/Player.cs index 59231a1c30..dd3f58439b 100644 --- a/osu.Game/Screens/Play/Player.cs +++ b/osu.Game/Screens/Play/Player.cs @@ -110,7 +110,7 @@ namespace osu.Game.Screens.Play protected HealthProcessor HealthProcessor { get; private set; } - public DrawableRuleset DrawableRuleset { get; set; } + protected DrawableRuleset DrawableRuleset { get; private set; } protected HUDOverlay HUDOverlay { get; private set; }