SteamWar/BauSystem2.0
Archiviert
12
0

Fix MaterialCommand

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2021-08-03 13:18:48 +02:00
Ursprung 2c42dfafe9
Commit 680d72c2be

Datei anzeigen

@ -69,7 +69,7 @@ public class MaterialCommand extends SWCommand {
if (value.isFlammable()) {
lore.add(BauSystem.MESSAGE.parse("MATERIAL_FLAMMABLE", p));
}
SWItem swItem = new SWItem(value.isItem() ? value : Material.GHAST_TEAR, "§e" + value.name(), lore, false, clickType -> {});
SWItem swItem = new SWItem(value.isItem() || value == Material.AIR ? value : Material.GHAST_TEAR, "§e" + value.name(), lore, false, clickType -> {});
swListEntries.add(new SWListInv.SWListEntry<>(swItem, value));
}
SWListInv<Material> materialSWListInv = new SWListInv<>(p, BauSystem.MESSAGE.parse("MATERIAL_INV_NAME", p), false, swListEntries, (clickType, material) -> {});