mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-30 18:46:40 +00:00
Make sure leaves category is loaded for heightmaps (fixes #1176)
This commit is contained in:
@ -39,6 +39,10 @@ public enum HeightMapType {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static {
|
||||||
|
BlockCategories.LEAVES.getAll(); // make sure this category is initialized, otherwise isLeaf might fail
|
||||||
|
}
|
||||||
|
|
||||||
private static boolean isLeaf(BlockState state) {
|
private static boolean isLeaf(BlockState state) {
|
||||||
return BlockCategories.LEAVES.contains(state);
|
return BlockCategories.LEAVES.contains(state);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user