Fix casting errors

This commit is contained in:
ceze88 2023-11-18 16:47:06 +01:00
parent 3d75eef3b4
commit d69510cae7

View File

@ -31,8 +31,8 @@ public class SerializedLocation {
(double) map.get("x"),
(double) map.get("y"),
(double) map.get("z"),
(float) map.getOrDefault("yaw", 0.0f),
(float) map.getOrDefault("pitch", 0.0f));
Double.valueOf((double)map.getOrDefault("yaw", 0.0)).floatValue(),
Double.valueOf((double)map.getOrDefault("pitch", 0.0)).floatValue());
}
public static Map<String, Object> of(Location location) {