Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-19 09:20:08 +01:00
Ursprung
75af797d4c
Commit
6dd779f90b
@ -320,10 +320,11 @@ public class Config {
|
||||
String node = toNodeName(field.getName());
|
||||
node = parentNode == null ? node : parentNode + "." + node;
|
||||
Map.Entry<String, Object> entry = copyTo.remove(node);
|
||||
Object copiedVal;
|
||||
if (entry == null) {
|
||||
copyTo.put(node, new AbstractMap.SimpleEntry<>(copiedFrom.value(), null));
|
||||
} else {
|
||||
field.set(instance, entry.getValue());
|
||||
} else if ((copiedVal = entry.getValue()) != null) {
|
||||
field.set(instance, copiedVal);
|
||||
}
|
||||
}
|
||||
Create create = field.getAnnotation(Create.class);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren