Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-19 09:20:08 +01:00
Make sure leaves category is loaded for heightmaps (fixes #1176)
Dieser Commit ist enthalten in:
Ursprung
c98f6e4f37
Commit
4d4db7dcd0
@ -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);
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren