mirror of
https://github.com/Flowsqy/ShopChest.git
synced 2025-01-05 07:27:39 +01:00
Fix conversion error when using numbers in hologram format
This commit is contained in:
parent
87f4a8808e
commit
38fede5baf
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user