Switch old Server#GetState() calls over to Server#Environment#State()

This commit is contained in:
Matthew Penner
2020-11-20 14:35:29 -07:00
parent 287b286940
commit 73b221d022
7 changed files with 11 additions and 11 deletions

View File

@@ -45,7 +45,7 @@ func (s *Server) handleServerCrash() error {
// No point in doing anything here if the server isn't currently offline, there
// is no reason to do a crash detection event. If the server crash detection is
// disabled we want to skip anything after this as well.
if s.GetState() != environment.ProcessOfflineState || !s.Config().CrashDetectionEnabled {
if s.Environment.State() != environment.ProcessOfflineState || !s.Config().CrashDetectionEnabled {
if !s.Config().CrashDetectionEnabled {
s.Log().Debug("server triggered crash detection but handler is disabled for server process")