mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Rename treeoptions & improve debug
This commit is contained in:
parent
66a8db598f
commit
6a868f975e
@ -52,8 +52,8 @@ public class TreeManager implements Listener {
|
||||
}
|
||||
|
||||
// Return null if not enabled
|
||||
if (!worldAccess.getCompound().getRootDimension().getSaplingSettings().isEnabled()) {
|
||||
Iris.debug(this.getClass().getName() + "cancelled because not");
|
||||
if (!worldAccess.getCompound().getRootDimension().getTreeSettings().isEnabled()) {
|
||||
Iris.debug(this.getClass().getName() + " cancelled because tree overrides are disabled");
|
||||
return;
|
||||
}
|
||||
|
||||
@ -183,13 +183,13 @@ public class TreeManager implements Listener {
|
||||
placements.addAll(matchObjectPlacements(biome.getObjects(), size, type));
|
||||
|
||||
// Add more or find any in the region
|
||||
if (worldAccess.getCompound().getRootDimension().getSaplingSettings().getMode().equals(IrisTreeModes.ALL) || placements.isEmpty()){
|
||||
if (worldAccess.getCompound().getRootDimension().getTreeSettings().getMode().equals(IrisTreeModes.ALL) || placements.isEmpty()){
|
||||
IrisRegion region = worldAccess.getCompound().getDefaultEngine().getRegion(location.getBlockX(), location.getBlockZ());
|
||||
placements.addAll(matchObjectPlacements(region.getObjects(), size, type));
|
||||
}
|
||||
|
||||
// Add more or find any in the dimension
|
||||
if (worldAccess.getCompound().getRootDimension().getSaplingSettings().getMode().equals(IrisTreeModes.ALL) || placements.isEmpty()){
|
||||
if (worldAccess.getCompound().getRootDimension().getTreeSettings().getMode().equals(IrisTreeModes.ALL) || placements.isEmpty()){
|
||||
placements.addAll(matchObjectPlacements(worldAccess.getCompound().getRootDimension().getObjects(), size, type));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user