mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 21:26:45 +01:00
Fix another legacy converter NPE
This commit is contained in:
parent
e396da8ee5
commit
67cf1b45ed
@ -113,6 +113,7 @@ import java.util.Map;
|
|||||||
for (final String world : worlds) {
|
for (final String world : worlds) {
|
||||||
final ConfigurationSection worldSection = configuration.getConfigurationSection(world);
|
final ConfigurationSection worldSection = configuration.getConfigurationSection(world);
|
||||||
for (final Map.Entry<String, ConfigurationType> entry : TYPE_MAP.entrySet()) {
|
for (final Map.Entry<String, ConfigurationType> entry : TYPE_MAP.entrySet()) {
|
||||||
|
if (worldSection.contains(entry.getKey())) {
|
||||||
if (entry.getValue() == ConfigurationType.BLOCK) {
|
if (entry.getValue() == ConfigurationType.BLOCK) {
|
||||||
this.convertBlock(worldSection, entry.getKey(),
|
this.convertBlock(worldSection, entry.getKey(),
|
||||||
worldSection.getString(entry.getKey()));
|
worldSection.getString(entry.getKey()));
|
||||||
@ -123,6 +124,7 @@ import java.util.Map;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private enum ConfigurationType {
|
private enum ConfigurationType {
|
||||||
BLOCK, BLOCK_LIST
|
BLOCK, BLOCK_LIST
|
||||||
|
Loading…
Reference in New Issue
Block a user