NBT
NBT copied to clipboard
Fix SNBTWriter
Title says it all, turns out SNBTWriter
has been broken since 0eeca85b28c831f2febf105d0b00045540a10100 :(
There current implementation is flawed in two ways:
- The
PrintWriter
is left to the default system charset, which (unfortunately) isn't always UTF-8. - The
PrintWriter
is never flushed, becauseprintln
(and similar) methods are never used.
This PR fixes them :)