Skip to content

Commit

Permalink
chores: optimize code
Browse files Browse the repository at this point in the history
  • Loading branch information
smartcmd committed May 31, 2024
1 parent bc8abb6 commit 198da22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public void mouseClicked(MouseEvent e) {
});
popupMenu.add(banItem);

JMenuItem banIpItem = new JMenuItem("Ban");
JMenuItem banIpItem = new JMenuItem("BanIp");
banIpItem.addActionListener(unused -> {
if (playerTable.getSelectedRow() == -1) return;
// Get the player
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -490,8 +490,7 @@ private void loadAndSendQueuedChunks() {
} while (!chunkSendingQueue.isEmpty() && triedSendChunkCount < chunkTrySendCountPerTick);
if (!chunkReadyToSend.isEmpty()) {
chunkLoader.publishClientChunkUpdate();
var worldSettings = Server.SETTINGS.worldSettings();
var chunkSendingStrategy = worldSettings.chunkSendingStrategy();
var chunkSendingStrategy = Server.SETTINGS.worldSettings().chunkSendingStrategy();
var useSubChunkSendingSystem = Server.SETTINGS.worldSettings().useSubChunkSendingSystem();
if (useSubChunkSendingSystem) {
// Use SYNC mode if a sub-chunk sending system is enabled
Expand Down

0 comments on commit 198da22

Please sign in to comment.