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