Skip to content

Commit 161e1fa

Browse files
committed
更新:history修改钩子注册优先级
1 parent 362c572 commit 161e1fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

History/History.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public class History : TerrariaPlugin
3232

3333
public History(Main game) : base(game)
3434
{
35-
this.Order = -1;
35+
this.Order = 5;
3636
}
3737
protected override void Dispose(bool disposing)
3838
{
@@ -50,7 +50,7 @@ public override void Initialize()
5050
Connect();
5151
this.InitBreaks();
5252
ServerApi.Hooks.GameInitialize.Register(this, this.OnInitialize);
53-
ServerApi.Hooks.NetGetData.Register(this, this.OnGetData);
53+
ServerApi.Hooks.NetGetData.Register(this, this.OnGetData, int.MinValue);
5454
ServerApi.Hooks.WorldSave.Register(this, this.OnSaveWorld);
5555
}
5656

0 commit comments

Comments
 (0)