Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
triphora authored Jul 4, 2024
1 parent 29d1379 commit c07a159
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
4 changes: 3 additions & 1 deletion common/src/main/java/coffee/waffle/emcutils/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ public static boolean isOnEMC() {
return false;
}

return networkHandler.getConnection().getAddressAsString(true).contains("emc.gs");
String address = networkHandler.getConnection().getAddressAsString(true);

return address.contains("emc.gs") || address.contains("empire.us") || address.contains("empireminecraft.com");
}

public static void setCurrentServer(String name) {
Expand Down
26 changes: 13 additions & 13 deletions common/src/main/resources/emcutils-common.mixins.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"required": true,
"minVersion": "0.8",
"package": "coffee.waffle.emcutils.mixin",
"compatibilityLevel": "JAVA_21",
"client": [
"ChatScreenMixin",
"ClientPlayNetworkHandlerMixin",
"IdentifierMixin",
"PlayerEntityMixin",
"PlayerListHudMixin"
],
"injectors": {
"defaultRequire": 1
"required": true,
"minVersion": "0.8",
"package": "coffee.waffle.emcutils.mixin",
"compatibilityLevel": "JAVA_21",
"client": [
"ChatScreenMixin",
"ClientPlayNetworkHandlerMixin",
"IdentifierMixin",
"PlayerEntityMixin",
"PlayerListHudMixin"
],
"injectors": {
"defaultRequire": 1
}
}

0 comments on commit c07a159

Please sign in to comment.