Skip to content

Commit

Permalink
Merge pull request #151 from Giraaffes/mc-1.18.x/1.18.2
Browse files Browse the repository at this point in the history
Fix for #147
  • Loading branch information
Merith-TK authored Sep 15, 2023
2 parents f2380ec + 511456f commit 0e90d5e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/license/api.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
This file is part of the public ComputerCraft API - http://www.computercraft.info
Copyright Daniel Ratcliffe, 2011-${year}. This API may be redistributed unmodified and in full only.
Copyright Daniel Ratcliffe, 2011-2022. This API may be redistributed unmodified and in full only.
For help using the API, and posting your mods, visit the forums at computercraft.info.
2 changes: 1 addition & 1 deletion config/license/main.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
This file is part of ComputerCraft - http://www.computercraft.info
Copyright Daniel Ratcliffe, 2011-${year}. Do not distribute without permission.
Copyright Daniel Ratcliffe, 2011-2022. Do not distribute without permission.
Send enquiries to [email protected]
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 0e90d5e

Please sign in to comment.