From 913932088840186653dd425245e2b86db6c8da19 Mon Sep 17 00:00:00 2001 From: Daniel Saukel Date: Sun, 24 Feb 2019 01:08:33 +0100 Subject: [PATCH] Close sign data object stream --- src/main/java/de/erethon/dungeonsxl/world/SignData.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/erethon/dungeonsxl/world/SignData.java b/src/main/java/de/erethon/dungeonsxl/world/SignData.java index fa48ae18..ffbbbc4d 100644 --- a/src/main/java/de/erethon/dungeonsxl/world/SignData.java +++ b/src/main/java/de/erethon/dungeonsxl/world/SignData.java @@ -74,8 +74,8 @@ public class SignData { public void deserializeSigns(DEditWorld editWorld) { try { ObjectInputStream os = new ObjectInputStream(new FileInputStream(file)); - int length = os.readInt(); + int length = os.readInt(); for (int i = 0; i < length; i++) { int x = os.readInt(); int y = os.readInt(); @@ -94,6 +94,8 @@ public class SignData { } } + os.close(); + } catch (IOException exception) { exception.printStackTrace(); }