SteamWar/BauSystem2.0
Archiviert
12
0

Hotfix PlaceItemWrapper15
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2023-10-06 15:46:23 +02:00
Ursprung 3183d71478
Commit 71f1a1244e

Datei anzeigen

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