Skip to content

Commit

Permalink
Fix for #147
Browse files Browse the repository at this point in the history
  • Loading branch information
Giraaffes committed Sep 12, 2023
1 parent f2380ec commit d868ce5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ public void sendTerminalState( Player player )

public void broadcastDelete()
{
// We could be in the process of shutting down the server, so we can't send packets in this case.
MinecraftServer server = GameInstanceUtils.getServer();
if( server == null || server.isStopped() ) return;

// Send deletion to client
NetworkHandler.sendToAllPlayers( new ComputerDeletedClientMessage( getInstanceID() ) );
}
Expand Down

0 comments on commit d868ce5

Please sign in to comment.