diff --git a/pom.xml b/pom.xml index 89ef2ba..d9ca630 100644 --- a/pom.xml +++ b/pom.xml @@ -62,13 +62,13 @@ junit junit - 4.11 + 4.13.2 test com.zaxxer HikariCP - 5.0.1 + 5.1.0 compile @@ -125,7 +125,7 @@ org.apache.maven.plugins maven-compiler-plugin - 3.10.1 + 3.12.1 17 @@ -133,7 +133,7 @@ org.codehaus.mojo build-helper-maven-plugin - 3.3.0 + 3.5.0 regex-property @@ -153,7 +153,7 @@ org.apache.maven.plugins maven-shade-plugin - 3.3.0 + 3.5.1 diff --git a/src/main/java/de/diddiz/LogBlock/blockstate/BlockStateCodecSkull.java b/src/main/java/de/diddiz/LogBlock/blockstate/BlockStateCodecSkull.java index 0f21426..310a72e 100644 --- a/src/main/java/de/diddiz/LogBlock/blockstate/BlockStateCodecSkull.java +++ b/src/main/java/de/diddiz/LogBlock/blockstate/BlockStateCodecSkull.java @@ -73,7 +73,7 @@ public class BlockStateCodecSkull implements BlockStateCodec { PlayerProfile profile = (PlayerProfile) conf.get("profile"); if (profile != null) { TextComponent tc = new TextComponent("[" + (profile.getName() != null ? profile.getName() : (profile.getUniqueId() != null ? profile.getUniqueId().toString() : "~unknown~")) + "]"); - if (profile.getName() != null) { + if (profile.getName() != null && profile.getUniqueId() != null) { tc.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new Text("UUID: " + profile.getUniqueId().toString()))); } return tc;