Potted azaleas are now visible

This commit is contained in:
Camotoy 2021-07-13 21:14:22 -04:00
parent b2619fa7c7
commit a1706365b9
No known key found for this signature in database
GPG key ID: 7EEFB66FE798081F

View file

@ -93,8 +93,13 @@ public class BlockStateValues {
return;
}
if (javaId.contains("potted_") || javaId.contains("flower_pot")) {
FLOWER_POT_VALUES.put(javaBlockState, javaId.replace("potted_", ""));
if (javaId.startsWith("minecraft:potted_") || javaId.equals("minecraft:flower_pot")) {
String name = javaId.replace("potted_", "");
if (name.contains("azalea")) {
// Exception to the rule
name = name.replace("_bush", "");
}
FLOWER_POT_VALUES.put(javaBlockState, name);
return;
}