diff --git a/plugin/src/main/java/org/screamingsandals/bedwars/utils/ColorChanger.java b/plugin/src/main/java/org/screamingsandals/bedwars/utils/ColorChanger.java index 33c6387c1..5e2373d9b 100644 --- a/plugin/src/main/java/org/screamingsandals/bedwars/utils/ColorChanger.java +++ b/plugin/src/main/java/org/screamingsandals/bedwars/utils/ColorChanger.java @@ -55,9 +55,9 @@ public static Material changeMaterialColor(Material material, TeamColor teamColo if (Main.autoColoredMaterials.contains(materialName)) { return Material.getMaterial(teamMaterialColor + "_" + materialName); - } else if (material.toString().contains("GLASS_PANE")) { + } else if ("GLASS_PANE".equals(material.toString())) { return Material.getMaterial(teamMaterialColor + "_STAINED_GLASS_PANE"); - } else if (material.toString().contains("GLASS")) { + } else if ("GLASS".equals(material.toString())) { return Material.getMaterial(teamMaterialColor + "_STAINED_GLASS"); } return material;