mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 02:36:59 +00:00
ANY treetype
This commit is contained in:
parent
aaf7ae8fc3
commit
f630537897
@ -210,7 +210,7 @@ public class TreeManager implements Listener {
|
||||
.filter(objectPlacement -> objectPlacement.getTreeOptions().isEnabled())
|
||||
.filter(objectPlacement -> objectPlacement.getTreeOptions().getTrees().stream().anyMatch(irisTree ->
|
||||
irisTree.getSizes().stream().anyMatch(treeSize -> treeSize == IrisTreeSize.ANY || treeSize == size) &&
|
||||
irisTree.getTreeTypes().stream().anyMatch(treeType -> treeType == type)))
|
||||
irisTree.getTreeTypes().stream().anyMatch(treeType -> treeType == IrisTreeType.ANY || treeType == type)))
|
||||
.forEach(objectPlacements::add);
|
||||
return objectPlacements;
|
||||
}
|
||||
|
@ -43,6 +43,9 @@ public enum IrisTreeType {
|
||||
@Desc("Tree with large roots which grows above lush caves")
|
||||
AZALEA,
|
||||
|
||||
@Desc("Any tree type (all will match, including mushrooms & nether trees")
|
||||
ANY,
|
||||
|
||||
@Desc("The fallback type for all other non-supported growth events")
|
||||
NONE;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user