mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-11-14 14:45:49 +01:00
parent
43145bd478
commit
69ae3656b5
@ -175,7 +175,7 @@ public class StreamSerializer {
|
||||
* @throws IOException If the operation fails due to reflection problems.
|
||||
*/
|
||||
public String serializeItemStack(ItemStack stack) throws IOException {
|
||||
return Base64.getEncoder().encodeToString(this.serializeItemStackToByteArray(stack));
|
||||
return Base64.getMimeEncoder().encodeToString(this.serializeItemStackToByteArray(stack));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -185,7 +185,7 @@ public class StreamSerializer {
|
||||
* @return A deserialized item stack, or NULL if the serialized ItemStack was also NULL.
|
||||
*/
|
||||
public ItemStack deserializeItemStack(String input) {
|
||||
return this.deserializeItemStackFromByteArray(Base64.getDecoder().decode(input));
|
||||
return this.deserializeItemStackFromByteArray(Base64.getMimeDecoder().decode(input));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user