From 59c01f246b1618d24cc862de6200994a7972f11f Mon Sep 17 00:00:00 2001 From: Tigerpanzer_02 <37453987+Tigerpanzer02@users.noreply.github.com> Date: Wed, 10 Jul 2024 23:36:38 +0200 Subject: [PATCH] Fixed MaterialUtils.getMat did not force default material on null --- .../minigamesbox/classic/utils/helper/MaterialUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MiniGamesBox Classic/src/main/java/plugily/projects/minigamesbox/classic/utils/helper/MaterialUtils.java b/MiniGamesBox Classic/src/main/java/plugily/projects/minigamesbox/classic/utils/helper/MaterialUtils.java index b9983a9d..a1e158a5 100644 --- a/MiniGamesBox Classic/src/main/java/plugily/projects/minigamesbox/classic/utils/helper/MaterialUtils.java +++ b/MiniGamesBox Classic/src/main/java/plugily/projects/minigamesbox/classic/utils/helper/MaterialUtils.java @@ -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; } }