aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyeyoung <cyoung06@naver.com>2021-11-06 17:04:54 +0900
committersyeyoung <cyoung06@naver.com>2021-11-06 17:04:54 +0900
commitc61223d4f4d233e14780547393fd4bb9a0efdd4d (patch)
tree473619d440dd800a6c1dd2b8e9f145059c23ea75 /src
parent06914fae35045a7f14a627ad3d55c8395801e18f (diff)
downloadSkyblock-Dungeons-Guide-c61223d4f4d233e14780547393fd4bb9a0efdd4d.tar.gz
Skyblock-Dungeons-Guide-c61223d4f4d233e14780547393fd4bb9a0efdd4d.tar.bz2
Skyblock-Dungeons-Guide-c61223d4f4d233e14780547393fd4bb9a0efdd4d.zip
- Remove unnecessary cast
- /viewprofilemenu getting detected as /viewprofie
Diffstat (limited to 'src')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/cosmetics/chatreplacers/ChatReplacerViewProfile.java4
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/pathfinding/JPSPathfinder.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/cosmetics/chatreplacers/ChatReplacerViewProfile.java b/src/main/java/kr/syeyoung/dungeonsguide/cosmetics/chatreplacers/ChatReplacerViewProfile.java
index 56430480..dd5bbd70 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/cosmetics/chatreplacers/ChatReplacerViewProfile.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/cosmetics/chatreplacers/ChatReplacerViewProfile.java
@@ -36,7 +36,7 @@ public class ChatReplacerViewProfile implements IChatReplacer {
@Override
public boolean isAcceptable(ClientChatReceivedEvent event) {
for (IChatComponent sibling : event.message.getSiblings()) {
- if (sibling.getChatStyle() != null && sibling.getChatStyle().getChatClickEvent() != null && sibling.getChatStyle().getChatClickEvent().getValue().startsWith("/viewprofile")) return true;
+ if (sibling.getChatStyle() != null && sibling.getChatStyle().getChatClickEvent() != null && sibling.getChatStyle().getChatClickEvent().getValue().startsWith("/viewprofile ")) return true;
}
return false;
}
@@ -45,7 +45,7 @@ public class ChatReplacerViewProfile implements IChatReplacer {
public void translate(ClientChatReceivedEvent event, CosmeticsManager cosmeticsManager) {
List<Tuple<IChatComponent, IChatComponent>> replaceMents = new ArrayList<>();
for (IChatComponent sibling : event.message.getSiblings()) {
- if (sibling.getChatStyle() != null && sibling.getChatStyle().getChatClickEvent() != null && sibling.getChatStyle().getChatClickEvent().getValue().startsWith("/viewprofile")) {
+ if (sibling.getChatStyle() != null && sibling.getChatStyle().getChatClickEvent() != null && sibling.getChatStyle().getChatClickEvent().getValue().startsWith("/viewprofile ")) {
String uid = sibling.getChatStyle().getChatClickEvent().getValue().split(" ")[1];
List<ActiveCosmetic> cDatas = cosmeticsManager.getActiveCosmeticByPlayer().get(UUID.fromString(uid));
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/pathfinding/JPSPathfinder.java b/src/main/java/kr/syeyoung/dungeonsguide/pathfinding/JPSPathfinder.java
index 657f3cb3..8e989855 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/pathfinding/JPSPathfinder.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/pathfinding/JPSPathfinder.java
@@ -57,7 +57,7 @@ public class JPSPathfinder {
private Node openNode(int x, int y, int z)
{
int i = Node.makeHash(x, y, z);
- Node node = (Node)this.nodeMap.lookup(i);
+ Node node = this.nodeMap.lookup(i);
if (node == null)
{