MCTCP / TerrainControl

Minecraft Terrain Generator for SpigotMC and Forge
https://www.spigotmc.org/threads/terraincontrol.37980/
MIT License
230 stars 163 forks source link

Bo3 object are somehow getting junk data saved to the files #561

Open Dockter opened 6 years ago

Dockter commented 6 years ago

I've experienced this issue a couple times now where junk data is randomly getting saved to the biome object files.

I'm curious if the bo3's aren't being closed properly and its causing this issue.

rutgerkok commented 6 years ago

Junk data? As in seemingly random bytes?

I'll have a look.

rutgerkok commented 6 years ago

I see you tried to fix this in 330e8b56969675716ffff874ae40993e1aa18f86 , but that cannot possibly be the cause. The variable streamForUncompressed was part of a try-with-resources block, which closes the resource automatically. So the added .close() call is redundant.