aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorCow <cow@volloeko.de>2020-07-31 19:27:46 +0200
committerCow <cow@volloeko.de>2020-07-31 19:27:46 +0200
commitbf9e3c936858faa55a7ed66cc89403ea844419e8 (patch)
tree94cccd19f13309501a4268679db9c09fdff60569 /src/main
parenta9ba18c7178a58a88995af7edd9204cbe02638f8 (diff)
downloadCowlection-bf9e3c936858faa55a7ed66cc89403ea844419e8.tar.gz
Cowlection-bf9e3c936858faa55a7ed66cc89403ea844419e8.tar.bz2
Cowlection-bf9e3c936858faa55a7ed66cc89403ea844419e8.zip
Fix looking up the player's own armor
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/de/cowtipper/cowlection/listener/ChatListener.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/cowtipper/cowlection/listener/ChatListener.java b/src/main/java/de/cowtipper/cowlection/listener/ChatListener.java
index 8b563b6..466c002 100644
--- a/src/main/java/de/cowtipper/cowlection/listener/ChatListener.java
+++ b/src/main/java/de/cowtipper/cowlection/listener/ChatListener.java
@@ -167,7 +167,7 @@ public class ChatListener {
messageSender = partyOrGameInviteMatcher.group(1);
} else if (dungeonPartyFinderJoinedMatcher.find()) {
messageSender = dungeonPartyFinderJoinedMatcher.group(1);
- if (!"disabled".equals(MooConfig.dungPartyFinderArmorLookup)) {
+ if (!"disabled".equals(MooConfig.dungPartyFinderArmorLookup) && !messageSender.equals(Minecraft.getMinecraft().thePlayer.getName())) {
String dungeonClass = dungeonPartyFinderJoinedMatcher.group(2) + " Lvl " + dungeonPartyFinderJoinedMatcher.group(3);
getDungeonPartyMemberDetails(messageSender, dungeonClass);
}