mirror of
https://github.com/songoda/SongodaCore.git
synced 2025-02-26 08:21:20 +01:00
Fix casting errors
This commit is contained in:
parent
3d75eef3b4
commit
d69510cae7
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user