Fix conversion error when using numbers in hologram format

This commit is contained in:
Flowsqy 2022-02-24 13:35:33 +01:00
parent 87f4a8808e
commit 38fede5baf

View File

@ -64,7 +64,7 @@ public abstract class MapProvider<P, T> implements Function<Map<P, Object>, T> {
@Override
public Double apply(Map<P, Object> values) {
return (Double) values.get(requirement);
return ((Number) values.get(requirement)).doubleValue();
}
}