Skip to content

Commit

Permalink
perf: not a break change
Browse files Browse the repository at this point in the history
  • Loading branch information
0XPYEX0 committed Oct 2, 2024
1 parent e8e8074 commit bc7740e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/ch/njol/skript/bukkitutil/BukkitUnsafe.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ public class BukkitUnsafe {
@Nullable
private static Map<Integer,Material> idMappings;

@Deprecated
public static Material getMaterialFromMinecraftId(String id) {
return getMaterialFromNamespacedId(id);
}

@Nullable
public static Material getMaterialFromNamespacedId(String id) {
return Material.matchMaterial(id.toLowerCase().startsWith(NamespacedKey.MINECRAFT + ":")
Expand Down

0 comments on commit bc7740e

Please sign in to comment.