diff --git a/src/main/java/world/bentobox/bentobox/database/yaml/YamlDatabaseHandler.java b/src/main/java/world/bentobox/bentobox/database/yaml/YamlDatabaseHandler.java index 7de79cb79..8c641e383 100644 --- a/src/main/java/world/bentobox/bentobox/database/yaml/YamlDatabaseHandler.java +++ b/src/main/java/world/bentobox/bentobox/database/yaml/YamlDatabaseHandler.java @@ -636,6 +636,10 @@ public class YamlDatabaseHandler extends AbstractDatabaseHandler { return Enums.getIfPresent(EntityType.class, "ZOMBIFIED_PIGLIN") .or(Enums.getIfPresent(EntityType.class, "PIG_ZOMBIE").or(EntityType.PIG)); } + // Backwards compatibility for upgrade to 1.20.4 + if (name.equals("GRASS")) { + return Enums.getIfPresent(EntityType.class, "SHORT_GRASS"); + } value = Enum.valueOf(enumClass, name); } catch (Exception e) { // This value does not exist - probably admin typed it wrongly