Skip to content

Commit 29ec08d

Browse files
committed
Updated type adapter instantiation for Gson setup
Replaced singleton instances with new object creation to improve clarity and consistency.
1 parent 49b52d6 commit 29ec08d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/net/thenextlvl/gopaint/GoPaintPlugin.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ public class GoPaintPlugin extends JavaPlugin implements GoPaintProvider {
5555
new PluginConfig.AngleConfig(2, 5, 10, 40, 85),
5656
new PluginConfig.FractureConfig(2, 5)
5757
), new GsonBuilder()
58-
.registerTypeAdapter(Material.class, MaterialAdapter.instance())
59-
.registerTypeAdapter(Key.class, KeyAdapter.kyori())
58+
.registerTypeAdapter(Material.class, new MaterialAdapter())
59+
.registerTypeAdapter(Key.class, new KeyAdapter.Kyori())
6060
.setPrettyPrinting()
6161
.create()
6262
).validate().save();

0 commit comments

Comments
 (0)