From d13ce46adf63aea6f8d675c85818549eec3b7c90 Mon Sep 17 00:00:00 2001 From: makamys Date: Sun, 9 May 2021 05:55:08 +0200 Subject: Don't crash on NBT errors --- src/main/java/makamys/lodmod/renderer/LODRegion.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/makamys/lodmod/renderer') diff --git a/src/main/java/makamys/lodmod/renderer/LODRegion.java b/src/main/java/makamys/lodmod/renderer/LODRegion.java index 2aff7a6..a99c24a 100644 --- a/src/main/java/makamys/lodmod/renderer/LODRegion.java +++ b/src/main/java/makamys/lodmod/renderer/LODRegion.java @@ -63,7 +63,7 @@ public class LODRegion { try { NBTTagCompound nbt = CompressedStreamTools.readCompressed(new FileInputStream(saveFile)); return new LODRegion(regionX, regionZ, nbt); - } catch (IOException e) { + } catch (Exception e) { e.printStackTrace(); } } -- cgit