change getRaviSemaphore scope & handle RegisterEvent

This commit is contained in:
wish
2023-08-30 22:29:49 +10:00
parent 813a3df6a7
commit 42abdfb0c7
4 changed files with 9 additions and 8 deletions

View File

@@ -91,7 +91,7 @@ func NewRaviente() *Raviente {
}
func (s *Server) GetRaviMultiplier() float64 {
raviSema := getRaviSemaphore(s)
raviSema := s.getRaviSemaphore()
if raviSema != nil {
var minPlayers int
if s.raviente.register[9] > 8 {