Remove instance initializer on HashMap.

This commit is contained in:
Jeremy Wood 2025-01-23 23:57:21 -05:00
parent 54f03256f7
commit 6d32393145
No known key found for this signature in database
GPG Key ID: C5BAD04C77B91B4B

View File

@ -99,13 +99,13 @@ public class SpawnLocation extends Location implements ConfigurationSerializable
*/
@Override
public @NotNull Map<String, Object> serialize() {
return new HashMap<>() {{
put("x", getX());
put("y", getY());
put("z", getZ());
put("pitch", getPitch());
put("yaw", getYaw());
}};
var map = new HashMap<String, Object>();
map.put("x", getX());
map.put("y", getY());
map.put("z", getZ());
map.put("pitch", getPitch());
map.put("yaw", getYaw());
return map;
}
/**