mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
Fix icon in timings
This commit is contained in:
parent
62d13109b7
commit
f496b60138
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue