Commit 9e48b83 1 parent a6ca53b commit 9e48b83 Copy full SHA for 9e48b83
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
using Celeste . Mod . Entities ;
2
2
using Microsoft . Xna . Framework ;
3
3
using Monocle ;
4
- using MonoMod . Utils ;
5
4
using System . Reflection ;
6
5
7
6
namespace Celeste . Mod . MaxHelpingHand . Entities {
@@ -12,6 +11,7 @@ namespace Celeste.Mod.MaxHelpingHand.Entities {
12
11
public class SpinnerBreakingBallVanilla : SpinnerBreakingBallGeneric < CrystalStaticSpinner , CrystalColor > {
13
12
private static MethodInfo crystalSpinnerGetHue = typeof ( CrystalStaticSpinner ) . GetMethod ( "GetHue" , BindingFlags . NonPublic | BindingFlags . Instance ) ;
14
13
private static FieldInfo spinnerIDField = typeof ( CrystalStaticSpinner ) . GetField ( "ID" , BindingFlags . NonPublic | BindingFlags . Instance ) ;
14
+ private static FieldInfo spinnerColorField = typeof ( CrystalStaticSpinner ) . GetField ( "color" , BindingFlags . NonPublic | BindingFlags . Instance ) ;
15
15
16
16
private CrystalStaticSpinner rainbowSpinner ;
17
17
private bool rainbowTinting ;
@@ -52,7 +52,7 @@ protected override int getID(CrystalStaticSpinner spinner) {
52
52
}
53
53
54
54
protected override CrystalColor getColor ( CrystalStaticSpinner spinner ) {
55
- return new DynData < CrystalStaticSpinner > ( spinner ) . Get < CrystalColor > ( "color" ) ;
55
+ return ( CrystalColor ) spinnerColorField . GetValue ( spinner ) ;
56
56
}
57
57
58
58
protected override bool getAttachToSolid ( CrystalStaticSpinner spinner ) {
You can’t perform that action at this time.
0 commit comments