Skip to content

Commit

Permalink
fix: auto team coloring replaced spyglass with stained_glass if activ…
Browse files Browse the repository at this point in the history
…ated
  • Loading branch information
Misat11 committed Feb 18, 2024
1 parent 0cd9524 commit 83ee6c7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

1 comment on commit 83ee6c7

@zlataovce
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💀

Please sign in to comment.