Skip to content

Commit

Permalink
Fixed MaterialUtils.getMat did not force default material on null
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigerpanzer02 committed Jul 10, 2024
1 parent 6391dcd commit 59c01f2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ public static boolean isDoor(Material mat) {

private static Material getMat(String name) {
Material material = Material.getMaterial(name.toUpperCase());
if (material== null){
if(material == null) {
material = XMaterial.OAK_SIGN.parseMaterial();
}
return Material.getMaterial(name.toUpperCase());
return material;
}
}

0 comments on commit 59c01f2

Please sign in to comment.