mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 14:38:45 +00:00
Ready for Minecraft 1.12
This commit is contained in:
1 parent
2d064ee849
commit
f609758d28
9 files changed
+73
-29
No files matched your search
+4
-1
@@ -33,6 +33,7 @@ import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.util.ArrayDeque;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
@@ -188,7 +189,9 @@ public class CommentedConfiguration extends YamlConfiguration {
|
||||
CommentedConfiguration config = new CommentedConfiguration();
|
||||
|
||||
try {
|
||||
config.load(stream);
|
||||
InputStreamReader reader = new InputStreamReader(stream);
|
||||
config.load(reader);
|
||||
reader.close();
|
||||
} catch (IOException ex) {
|
||||
Bukkit.getLogger().log(Level.SEVERE, "Cannot load configuration from stream", ex);
|
||||
} catch (InvalidConfigurationException ex) {
|
||||
|
||||
Reference in new issue
Block a user