Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-09-06 16:12:51 +02:00
Simplify logic
Dieser Commit ist enthalten in:
Ursprung
4534154894
Commit
6f2e4c0cf3
@ -123,11 +123,7 @@ public class YAMLNode {
|
|||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public Object getProperty(String path) {
|
public Object getProperty(String path) {
|
||||||
if (!path.contains(".")) {
|
if (!path.contains(".")) {
|
||||||
Object val = root.get(path);
|
return root.get(path);
|
||||||
if (val == null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return val;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] parts = path.split("\\.");
|
String[] parts = path.split("\\.");
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren