File tree 4 files changed +11
-6
lines changed
4 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -59,19 +59,13 @@ public void UpdateGPoseTable()
59
59
if ( go != null )
60
60
{
61
61
_gposeActors . Add ( go ) ;
62
- HandleGameObject ( go ) ;
63
62
}
64
63
}
65
64
}
66
65
67
66
public static bool IsGPoseActor ( int index ) => index >= GPoseFirstActor && index < GPoseFirstActor + GPoseActorCount ;
68
67
public unsafe static bool IsGPoseActor ( GameObject gameObject ) => IsGPoseActor ( gameObject . AsNative ( ) ->ObjectIndex ) ;
69
68
70
- private void HandleGameObject ( GameObject go )
71
- {
72
-
73
- }
74
-
75
69
public override void Dispose ( )
76
70
{
77
71
_gposeActors . Clear ( ) ;
Original file line number Diff line number Diff line change @@ -143,6 +143,13 @@ public unsafe bool DestroyObject(DalamudGameObject go)
143
143
return false;
144
144
}
145
145
146
+ public override void Stop( )
147
+ {
148
+ GPoseService . Instance . OnGPoseStateChange -= GPoseService_OnGPoseStateChange ;
149
+ ActorService . Instance . OnActorDestructing -= ActorService_OnActorDestructing ;
150
+ Dalamud . ClientState . TerritoryChanged -= ClientState_TerritoryChanged ;
151
+ }
152
+
146
153
public override void Dispose ( )
147
154
{
148
155
DestroyAllCreated( ) ;
Original file line number Diff line number Diff line change @@ -123,5 +123,7 @@ public override void Dispose()
123
123
{
124
124
CleanupOverrides ( ) ;
125
125
PenumbraIPCService . Instance . OnPenumbraStateChange -= PenumbraIPC_OnPenumbraStateChange ;
126
+ ActorService . Instance . OnActorDestructing -= ActorService_OnActorDestructing ;
127
+
126
128
}
127
129
}
Original file line number Diff line number Diff line change @@ -70,8 +70,10 @@ private void UiBuilder_OpenConfigUi()
70
70
71
71
public override void Stop ( )
72
72
{
73
+ GPoseService . Instance . OnGPoseStateChange -= Instance_OnGPoseStateChange ;
73
74
Dalamud . PluginInterface . UiBuilder . Draw -= UiBuilder_Draw ;
74
75
Dalamud . PluginInterface . UiBuilder . OpenConfigUi -= UiBuilder_OpenConfigUi ;
76
+
75
77
WindowSystem . RemoveAllWindows ( ) ;
76
78
}
77
79
}
You can’t perform that action at this time.
0 commit comments