Skip to content

Commit 8b6e05f

Browse files
fix(null pointer to ball When changing map)
1 parent d8af11a commit 8b6e05f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

FunFootBall.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,12 @@ public override void Fun(FunMatchPlugin plugin)
107107
BallStatusTimer = plugin.AddTimer(1,()=>CheckBallStatus(),TimerFlags.REPEAT);
108108
return HookResult.Stop;
109109
});
110+
111+
plugin.RegisterEventHandler<EventRoundEnd>((@event, info)=>
112+
{
113+
EndFun(plugin);
114+
return HookResult.Stop;
115+
});
110116
}
111117

112118
private void CheckBallStatus()

0 commit comments

Comments
 (0)