Skip to content

Commit

Permalink
fix housing check for hide guild tags
Browse files Browse the repository at this point in the history
  • Loading branch information
MicrocontrollersDev committed Jun 26, 2024
1 parent cdcf5bb commit 049f271
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public static String modifyName(String name, NetworkPlayerInfo networkPlayerInfo
}

LocrawInfo locraw = LocrawUtil.INSTANCE.getLocrawInfo();
if (HytilsConfig.hideGuildTagsInTab && name.endsWith("]") && locraw != null && (locraw.getGameType() != LocrawInfo.GameType.HOUSING || !LocrawUtil.INSTANCE.isInGame())) {
if (HytilsConfig.hideGuildTagsInTab && name.endsWith("]") && locraw != null && (locraw.getGameType() != LocrawInfo.GameType.HOUSING && !LocrawUtil.INSTANCE.isInGame())) {
// trim off the guild tag
// e.g. Steve §6[GUILD]
name = name.substring(0, name.lastIndexOf("[") - 3);
Expand Down

0 comments on commit 049f271

Please sign in to comment.