NBT icon indicating copy to clipboard operation
NBT copied to clipboard

Fix SNBTWriter

Open HoldYourWaffle opened this issue 2 years ago • 0 comments

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, because println (and similar) methods are never used.

This PR fixes them :)

HoldYourWaffle avatar Aug 20 '22 21:08 HoldYourWaffle