mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-02-13 11:01:57 +01:00
Remove instance initializer on HashMap.
This commit is contained in:
parent
54f03256f7
commit
6d32393145
@ -99,13 +99,13 @@ public class SpawnLocation extends Location implements ConfigurationSerializable
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public @NotNull Map<String, Object> serialize() {
|
public @NotNull Map<String, Object> serialize() {
|
||||||
return new HashMap<>() {{
|
var map = new HashMap<String, Object>();
|
||||||
put("x", getX());
|
map.put("x", getX());
|
||||||
put("y", getY());
|
map.put("y", getY());
|
||||||
put("z", getZ());
|
map.put("z", getZ());
|
||||||
put("pitch", getPitch());
|
map.put("pitch", getPitch());
|
||||||
put("yaw", getYaw());
|
map.put("yaw", getYaw());
|
||||||
}};
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user