Skip to content

Commit

Permalink
fix: remove log that would spam the console "Client attempted to conn…
Browse files Browse the repository at this point in the history
…ect"

This was caused because forge rebakes the status every 5 seconds as well as neoforge now has a proper UI to tell users what is up now.
  • Loading branch information
sekwah41 committed Aug 6, 2023
1 parent a16147a commit 134da34
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/main/java/com/sekwah/narutomod/network/PacketHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,13 @@ public class PacketHandler {
if (version.equals(PROTOCOL_VERSION)) {
return true;
} else {
LOGGER.error("Client attempted to connect with a different version of the mod. Client Version: " + PROTOCOL_VERSION + " Server Version: " + version);
return false;
}
})
.serverAcceptedVersions(version -> {
if (version.equals(PROTOCOL_VERSION)) {
return true;
} else {
LOGGER.error("Client attempted to connect with a different version of the mod. Server Version: " + PROTOCOL_VERSION + " Client Version: " + version);
return false;
}
})
Expand Down

0 comments on commit 134da34

Please sign in to comment.