Move tryClose() method in order

This commit is contained in:
riking 2014-06-03 17:53:00 -07:00
parent 180998e5ca
commit a25bc46dea

View file

@ -143,16 +143,6 @@ public class LibsDisguises extends JavaPlugin {
return toWrite; return toWrite;
} }
private static void tryClose(Closeable input) {
if (input != null) {
try {
input.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
/** /**
* Here we create a nms entity for each disguise. Then grab their default values in their datawatcher. Then their sound volume * Here we create a nms entity for each disguise. Then grab their default values in their datawatcher. Then their sound volume
* for mob noises. As well as setting their watcher class and entity size. * for mob noises. As well as setting their watcher class and entity size.
@ -305,4 +295,14 @@ public class LibsDisguises extends JavaPlugin {
return builder.toString(); return builder.toString();
} }
private void tryClose(Closeable input) {
if (input != null) {
try {
input.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
} }