Skip to content

Commit

Permalink
Merge pull request #62 from TheNextLvl-net/adapters
Browse files Browse the repository at this point in the history
Update dependencies and refactor key adapter registrations
  • Loading branch information
NonSwag authored Nov 27, 2024
2 parents 96ebfba + d71e4ae commit e5ffbfe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dependencies {

implementation("org.bstats:bstats-bukkit:3.1.0")

api("net.thenextlvl.core:adapters:1.0.9")
api("net.thenextlvl.core:adapters:2.0.1")

api(project(":api"))

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/net/thenextlvl/gopaint/GoPaintPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ public class GoPaintPlugin extends JavaPlugin implements GoPaintProvider {
new PluginConfig.AngleConfig(2, 5, 10, 40, 85),
new PluginConfig.FractureConfig(2, 5)
), new GsonBuilder()
.registerTypeAdapter(Material.class, MaterialAdapter.NotNull.INSTANCE)
.registerTypeAdapter(Key.class, KeyAdapter.Kyori.INSTANCE)
.registerTypeAdapter(Material.class, MaterialAdapter.instance())
.registerTypeAdapter(Key.class, KeyAdapter.kyori())
.setPrettyPrinting()
.create()
).validate().save();
Expand Down

0 comments on commit e5ffbfe

Please sign in to comment.