Skip to content

Commit

Permalink
fix compatiblity issues with the newest runelite release
Browse files Browse the repository at this point in the history
  • Loading branch information
hex-agon committed Aug 15, 2024
1 parent 1dd8942 commit 41a0502
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ This header **should** be used for user authentication.

### Updates

### V1.8
- Fix compatibility with the latest client changes. The behaviour of the `rank` field might change with this update.

##### V1.6
- Fixes private logs containing clan messages

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ test {
}

group = 'fking.work.chatlogger'
version = '1.7.0'
version = '1.8.0'
sourceCompatibility = '1.8'

tasks.withType(JavaCompile) {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/fking/work/chatlogger/ChatLoggerPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,15 @@ private int clanChannelMemberRank(String name, String clanName) {
if (clanChannel != null) {
ClanChannelMember member = clanChannel.findMember(cleanName);
if (member != null && clanChannel.getName().equals(clanName)) {
return member.getRank().ordinal();
return member.getRank().getRank();
}
}
clanChannel = client.getGuestClanChannel();

if (clanChannel != null) {
ClanChannelMember member = clanChannel.findMember(cleanName);
if (member != null && clanChannel.getName().equals(clanName)) {
return member.getRank().ordinal();
return member.getRank().getRank();
}
}
return CHANNEL_UNRANKED;
Expand Down

0 comments on commit 41a0502

Please sign in to comment.