mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
parent
75af797d4c
commit
6dd779f90b
@ -320,10 +320,11 @@ public class Config {
|
|||||||
String node = toNodeName(field.getName());
|
String node = toNodeName(field.getName());
|
||||||
node = parentNode == null ? node : parentNode + "." + node;
|
node = parentNode == null ? node : parentNode + "." + node;
|
||||||
Map.Entry<String, Object> entry = copyTo.remove(node);
|
Map.Entry<String, Object> entry = copyTo.remove(node);
|
||||||
|
Object copiedVal;
|
||||||
if (entry == null) {
|
if (entry == null) {
|
||||||
copyTo.put(node, new AbstractMap.SimpleEntry<>(copiedFrom.value(), null));
|
copyTo.put(node, new AbstractMap.SimpleEntry<>(copiedFrom.value(), null));
|
||||||
} else {
|
} else if ((copiedVal = entry.getValue()) != null) {
|
||||||
field.set(instance, entry.getValue());
|
field.set(instance, copiedVal);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Create create = field.getAnnotation(Create.class);
|
Create create = field.getAnnotation(Create.class);
|
||||||
|
Loading…
Reference in New Issue
Block a user