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);