mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-07 19:30:48 +01:00
Close sign data object stream
This commit is contained in:
parent
420b880c63
commit
9139320888
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user