Skip to content

Commit

Permalink
remove unnecessary prints
Browse files Browse the repository at this point in the history
  • Loading branch information
syeyoung committed May 8, 2021
1 parent 293bb4f commit 6a5d84a
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -359,19 +359,6 @@ public void processCommand(ICommandSender sender, String[] args) {
} else if (args[0].equals("purge")) {
ApiFetchur.purgeCache();
sender.addChatMessage(new ChatComponentText("§eDungeons Guide §7:: §fSuccessfully purged API Cache!"));
} else if (args[0].equals("send")) {
DungeonsGuide.getDungeonsGuide().getStompConnection().send(new StompPayload().header("destination", args[1]).method(StompHeader.SEND).payload(args[2]));
} else if (args[0].equals("subscribe")) {
DungeonsGuide.getDungeonsGuide().getStompConnection().subscribe(StompSubscription.builder().destination(args[1]).ackMode(StompSubscription.AckMode.AUTO).stompMessageHandler(new StompMessageHandler() {
@Override
public void handle(StompInterface stompInterface, StompPayload stompPayload) {

}
}).build());
} else if (args[0].equals("echo")) {
for (NetworkPlayerInfo networkPlayerInfo : Minecraft.getMinecraft().getNetHandler().getPlayerInfoMap()) {
System.out.println(networkPlayerInfo);
}
} else {
sender.addChatMessage(new ChatComponentText("§eDungeons Guide §7:: §e/dg §7-§fOpens configuration gui"));
sender.addChatMessage(new ChatComponentText("§eDungeons Guide §7:: §e/dg gui §7-§fOpens configuration gui"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ public void onStompConnected(StompConnectedEvent event) {
public void handle(StompInterface stompInterface, StompPayload stompPayload) {
try {
mayorScore = Integer.parseInt(stompPayload.payload().trim());
System.out.println("mayor " +mayorScore);
} catch (Exception e) {
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,10 @@ public void onChat(ClientChatReceivedEvent clientChatReceivedEvent) {
lastDisband = s;
break;
}
System.out.println(lastDisband);
} else if (clientChatReceivedEvent.message.getFormattedText().contains("§ehas invited you to join their party!")) {
String[] texts = TextUtils.stripColor(clientChatReceivedEvent.message.getFormattedText()).split(" ");
boolean equals = false;
for (String s : texts) {
System.out.println(s);
if (s.isEmpty()) continue;
if (s.startsWith("[")) continue;
if (s.equalsIgnoreCase("has")) continue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -452,9 +452,7 @@ public static PlayerProfile parseProfile(JsonObject profile, String dashTrimmed)
}
if (playerData.has("dungeons")) {
String id = getOrDefault(playerData.getAsJsonObject("dungeons"), "selected_dungeon_class", null);
System.out.println(id);
DungeonClass dungeonClass = DungeonClass.getClassByJsonName(id);
System.out.println(dungeonClass);
playerProfile.setSelectedClass(dungeonClass);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,6 @@ public void mouseScrolled(int absMouseX, int absMouseY, int relMouseX0, int relM
if (scrollAmount < 0) scrollY += 20;
if (scrollAmount > 0) scrollY -= 20;
if (scrollY < 0) scrollY = 0;
System.out.println(scrollY);


}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,6 @@ public FakePlayer(GameProfile playerProfile, SkinFetchur.SkinSet skinSet, Player
for (int i = 0; i < nbtTagList.tagCount(); i++) {
String str = nbtTagList.getStringTagAt(i);
if (TextUtils.stripColor(str).startsWith("Gear")) {
System.out.println(str);
int dungeonScore = Integer.parseInt(TextUtils.keepIntegerCharactersOnly(TextUtils.stripColor(str).split(" ")[2]));
if (dungeonScore > highestDungeonScore) {
highestItem = itemStack;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ public void tick() {

double yInt1 = posZ1 - posX1 * slope1;
double yInt2 = posZ2 - posX2 * slope2;
System.out.println("pos1 (" + posX1 + "," + posZ1 + ") pos2 (" + posX2 + "," + posZ2 + ") slope (" + slope1 + "," + slope2 + ") intercept (" + yInt1 + "," + yInt2 + ")");

intersectionX = (yInt2 - yInt1) / (slope1 - slope2);
intersectionZ = (slope1 * intersectionX + yInt1);
Expand Down

0 comments on commit 6a5d84a

Please sign in to comment.