mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-12-22 09:08:03 +01:00
Fix IOException: Stream closed
This commit is contained in:
parent
01b7b04dfc
commit
6d7e73d8b2
@ -102,7 +102,7 @@ adminInfo:
|
||||
isUnlocked: "Insel ist nicht abgeschlossen"
|
||||
isUnprotected: "Insel ist nicht Purge-geschützt"
|
||||
lastLogin: "Letzter Login"
|
||||
maxSize: "Insel maximale Größe (Distanz)
|
||||
maxSize: "Insel maximale Größe (Distanz)"
|
||||
player: "Spieler"
|
||||
teamLeader: "Teamleiter"
|
||||
teamMembers: "Teammitglieder"
|
||||
|
@ -167,7 +167,7 @@ public class YamlResourceBundle extends ResourceBundle {
|
||||
String resourceName = toResourceName(bundleName, format);
|
||||
InputStream stream = loader.getResourceAsStream(resourceName);
|
||||
try {
|
||||
return new YamlResourceBundle(stream);
|
||||
return stream != null ? new YamlResourceBundle(stream) : null;
|
||||
} finally {
|
||||
if (stream != null) {
|
||||
stream.close();
|
||||
|
Loading…
Reference in New Issue
Block a user