From 38fede5baf5394a277a0b742175ccb5f7e577971 Mon Sep 17 00:00:00 2001 From: Flowsqy <47575244+Flowsqy@users.noreply.github.com> Date: Thu, 24 Feb 2022 13:35:33 +0100 Subject: [PATCH] Fix conversion error when using numbers in hologram format --- .../shopchest/config/hologram/provider/MapProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/src/main/java/de/epiceric/shopchest/config/hologram/provider/MapProvider.java b/plugin/src/main/java/de/epiceric/shopchest/config/hologram/provider/MapProvider.java index b11f62b..6d58ca1 100644 --- a/plugin/src/main/java/de/epiceric/shopchest/config/hologram/provider/MapProvider.java +++ b/plugin/src/main/java/de/epiceric/shopchest/config/hologram/provider/MapProvider.java @@ -64,7 +64,7 @@ public abstract class MapProvider implements Function, T> { @Override public Double apply(Map values) { - return (Double) values.get(requirement); + return ((Number) values.get(requirement)).doubleValue(); } }