From 71f1a1244e76f920103e3bd75994ea7bab92fab8 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Fri, 6 Oct 2023 15:46:23 +0200 Subject: [PATCH] Hotfix PlaceItemWrapper15 Signed-off-by: yoyosource --- .../steamwar/bausystem/utils/PlaceItemWrapper15.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/BauSystem_15/src/de/steamwar/bausystem/utils/PlaceItemWrapper15.java b/BauSystem_15/src/de/steamwar/bausystem/utils/PlaceItemWrapper15.java index d0828173..c945351a 100644 --- a/BauSystem_15/src/de/steamwar/bausystem/utils/PlaceItemWrapper15.java +++ b/BauSystem_15/src/de/steamwar/bausystem/utils/PlaceItemWrapper15.java @@ -29,9 +29,13 @@ public class PlaceItemWrapper15 implements PlaceItemWrapper { if (material.isLegacy()) continue; String nonWall = material.name().replace("_WALL_", "").replace("WALL_", "").replace("_WALL", ""); - Material nonWallMaterial = Material.valueOf(nonWall); - if (nonWallMaterial != material) { - BLOCK_MATERIAL_TO_WALL_BLOCK_MATERIAL.put(nonWallMaterial, material); + try { + Material nonWallMaterial = Material.valueOf(nonWall); + if (nonWallMaterial != material) { + BLOCK_MATERIAL_TO_WALL_BLOCK_MATERIAL.put(nonWallMaterial, material); + } + } catch (Exception e) { + // Ignore } } ITEM_MATERIAL_TO_BLOCK_MATERIAL.put(Material.REDSTONE, Material.REDSTONE_WIRE);