Fix icon in timings

This commit is contained in:
Jake Potrebic 2023-03-14 16:44:53 -07:00
parent 62d13109b7
commit f496b60138

View file

@ -2025,7 +2025,12 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
this.value = value;
}
+
+ public String getData() { return "data:image/png;base64," + new String(java.util.Base64.getEncoder().encode(value), java.nio.charset.StandardCharsets.UTF_8); } // Paper
+ public String getData() {
+ if (value == null) {
+ return null;
+ }
+ return "data:image/png;base64," + new String(java.util.Base64.getEncoder().encode(value), java.nio.charset.StandardCharsets.UTF_8);
+ } // Paper
}
diff --git a/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java b/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644