mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-27 21:27:44 +01:00
Close is handled automatically.
This commit is contained in:
parent
7e7b259531
commit
3f35afc76a
@ -162,7 +162,6 @@ public abstract class Addon implements AddonInterface {
|
|||||||
if (jarConfig != null) {
|
if (jarConfig != null) {
|
||||||
try (InputStream in = jar.getInputStream(jarConfig)) {
|
try (InputStream in = jar.getInputStream(jarConfig)) {
|
||||||
if (in == null) {
|
if (in == null) {
|
||||||
jar.close();
|
|
||||||
throw new IllegalArgumentException("The embedded resource '" + jarResource + "' cannot be found in " + jar.getName());
|
throw new IllegalArgumentException("The embedded resource '" + jarResource + "' cannot be found in " + jar.getName());
|
||||||
}
|
}
|
||||||
// There are two options, use the path of the resource or not
|
// There are two options, use the path of the resource or not
|
||||||
|
Loading…
Reference in New Issue
Block a user