Skip to content

Commit

Permalink
change
Browse files Browse the repository at this point in the history
  • Loading branch information
udu3324 committed Jul 6, 2024
1 parent 5570bf0 commit 8f1a899
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/udu3324/hytools/EventListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ public class EventListener {
public void onWorldLoaded(WorldEvent.Load event) {
ScanForNicks.usernames.clear();

//TEMP!!! REMOVE AFTER DEVELOPMENT
//isOnHypixel = true;

//add this check in case you are on replay mod, where you are not on a single-player world, but also not multiplayer (GitHub/EmeraldWither)
if (Minecraft.getMinecraft().getCurrentServerData() == null) {
isOnHypixel = false;
Expand All @@ -44,9 +47,6 @@ public void onWorldLoaded(WorldEvent.Load event) {
//they are in a server, but check the ip
String serverIP = Minecraft.getMinecraft().getCurrentServerData().serverIP;
isOnHypixel = serverIP.toLowerCase().contains("hypixel.net");

//TEMP!!! REMOVE AFTER DEVELOPMENT
//isOnHypixel = true;
}

@SubscribeEvent
Expand Down

0 comments on commit 8f1a899

Please sign in to comment.