Skip to content

Commit 32b7109

Browse files
committed
Fix bamboo
1 parent 95506c1 commit 32b7109

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/main/java/us/thezircon/play/autopickup/utils/TallCrops.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,18 @@ public ArrayList<Material> getVerticalReqDown() {
5757
}
5858

5959
public static Material checkAltType(Material material) {
60+
if (
61+
Bukkit.getVersion().contains("1.16") ||
62+
Bukkit.getVersion().contains("1.17") ||
63+
Bukkit.getVersion().contains("1.18") ||
64+
Bukkit.getVersion().contains("1.19") ||
65+
Bukkit.getVersion().contains("1.20") ||
66+
Bukkit.getVersion().contains("1.21")
67+
) {
68+
if (material == Material.BAMBOO_SAPLING) {
69+
return Material.BAMBOO;
70+
}
71+
}
6072
return material;
6173
}
6274
}

0 commit comments

Comments
 (0)