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 @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;
} }
/** /**