From 1dc6ddb2e8b8b6d14617e61f61a5860a0ea24a80 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sat, 2 Jan 2021 18:09:26 +0100 Subject: [PATCH] Revert unneccessary fix Signed-off-by: Lixfel --- .../src/de/steamwar/schematicsystem/commands/GUI.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/SchematicSystem_Main/src/de/steamwar/schematicsystem/commands/GUI.java b/SchematicSystem_Main/src/de/steamwar/schematicsystem/commands/GUI.java index 7523e65..d14f7ea 100644 --- a/SchematicSystem_Main/src/de/steamwar/schematicsystem/commands/GUI.java +++ b/SchematicSystem_Main/src/de/steamwar/schematicsystem/commands/GUI.java @@ -207,13 +207,8 @@ class GUI { Material m; if (schem.getItem().isEmpty()) m = SWItem.getMaterial("CAULDRON_ITEM"); - else{ - try{ - m = SWItem.getMaterial(schem.getItem()); - }catch(IllegalArgumentException e){ - m = SWItem.getMaterial("CAULDRON_ITEM"); - } - } + else + m = SWItem.getMaterial(schem.getItem()); SWItem item = new SWItem(m, "§e" + schem.getSchemName(), Collections.singletonList("§7" + schem.getSchemType().name()), !schem.getSchemType().writeable(), click -> {}); if(schem.getRank() > 0)