mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-26 04:35:43 +01:00
Add backward compatibility handleing for GRASS
This commit is contained in:
parent
f6e26aa5bd
commit
b260cf1f4f
@ -636,6 +636,10 @@ public class YamlDatabaseHandler<T> extends AbstractDatabaseHandler<T> {
|
|||||||
return Enums.getIfPresent(EntityType.class, "ZOMBIFIED_PIGLIN")
|
return Enums.getIfPresent(EntityType.class, "ZOMBIFIED_PIGLIN")
|
||||||
.or(Enums.getIfPresent(EntityType.class, "PIG_ZOMBIE").or(EntityType.PIG));
|
.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);
|
value = Enum.valueOf(enumClass, name);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
// This value does not exist - probably admin typed it wrongly
|
// This value does not exist - probably admin typed it wrongly
|
||||||
|
Loading…
Reference in New Issue
Block a user