Move tryClose() method in order
This commit is contained in:
		| @@ -143,16 +143,6 @@ public class LibsDisguises extends JavaPlugin { | ||||
|         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 | ||||
|      * 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(); | ||||
|     } | ||||
|  | ||||
|     private void tryClose(Closeable input) { | ||||
|         if (input != null) { | ||||
|             try { | ||||
|                 input.close(); | ||||
|             } catch (IOException e) { | ||||
|                 e.printStackTrace(); | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|  | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user