mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-02-17 12:30:13 +08:00
Fix config BigDecimal parsing returning null on error (#5373)
Also add some more exception logging for parse issues.
This commit is contained in:
parent
0d322e2c6b
commit
cdd277da92
@ -131,6 +131,7 @@ public class EssentialsConfiguration {
|
||||
try {
|
||||
return node.get(LazyLocation.class);
|
||||
} catch (SerializationException e) {
|
||||
Essentials.getWrappedLogger().log(Level.SEVERE, e.getMessage(), e);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -272,7 +273,8 @@ public class EssentialsConfiguration {
|
||||
try {
|
||||
return node.get(BigDecimal.class);
|
||||
} catch (SerializationException e) {
|
||||
return null;
|
||||
Essentials.getWrappedLogger().log(Level.SEVERE, e.getMessage(), e);
|
||||
return def;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user