mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-25 01:57:55 +01:00
Store config in a case insensitive map
This commit is contained in:
parent
828cebcc4b
commit
9d841bb91a
@ -21,6 +21,7 @@ import net.md_5.bungee.api.config.ConfigurationAdapter;
|
||||
import net.md_5.bungee.api.config.ListenerInfo;
|
||||
import net.md_5.bungee.api.config.ServerInfo;
|
||||
import net.md_5.bungee.api.config.TexturePackInfo;
|
||||
import net.md_5.bungee.util.CaseInsensitiveMap;
|
||||
import org.yaml.snakeyaml.DumperOptions;
|
||||
import org.yaml.snakeyaml.Yaml;
|
||||
|
||||
@ -48,7 +49,10 @@ public class YamlConfig implements ConfigurationAdapter
|
||||
|
||||
if ( config == null )
|
||||
{
|
||||
config = new HashMap();
|
||||
config = new CaseInsensitiveMap();
|
||||
} else
|
||||
{
|
||||
config = new CaseInsensitiveMap( config );
|
||||
}
|
||||
} catch ( IOException ex )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user