GalaxeTV/GalaxeSMP

KillAdvancement uses a deprecated function call

Closed this issue · 0 comments

In file src/main/java/tv/galaxe/galaxesmp/advancements/KillAdvancement.java there is a method to get the current item a killer is currently using:

      return Component.text("a " + item.getItemMeta().getDisplayName())

The getDisplayName() call is deprecated and should be replaced when Minecraft 1.20 releases to avoid pains with migration. It is being replaced with displayName().