aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/kr/syeyoung')
-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)
{