Skip to content

Commit 6ad1164

Browse files
committed
Do not show nickname if null
1 parent cb073ad commit 6ad1164

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ yarn_mappings=1.21.4+build.8
99
loader_version=0.16.10
1010

1111
# Mod Properties
12-
mod_version=1.1.1
12+
mod_version=1.1.2
1313
maven_group=com.scnamelink
1414
archives_base_name=sc-name-link
1515

src/client/java/golden/scnamelink/mixin/client/HoverEventMixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public abstract class HoverEventMixin {
4747
if (this.entityType == EntityType.PLAYER && this.name.isPresent()) {
4848
DisplayMapping mapping = SpooncraftNameLinkClient.getMapping(this.uuid,
4949
this.name.get().getString());
50-
if (mapping != null) {
50+
if (mapping != null && mapping.discord_nick != null) {
5151
this.tooltip.add(Text.translatable("gui.scnamelink.hover_nickname",
5252
mapping.discord_nick));
5353
}

0 commit comments

Comments
 (0)