Get the real engine

This commit is contained in:
Daniel Mills 2021-07-30 10:12:33 -04:00
parent 7d24a61ae8
commit b217162cad

View File

@ -232,7 +232,7 @@ public class TreeManager implements Listener {
// Add more or find any in the region // Add more or find any in the region
if (isUseAll || placements.isEmpty()) { if (isUseAll || placements.isEmpty()) {
IrisRegion region = worldAccess.getCompound().getDefaultEngine().getRegion(location.getBlockX(), location.getBlockZ()); IrisRegion region = worldAccess.getCompound().getEngineForHeight(location.getBlockY()).getRegion(location.getBlockX(), location.getBlockZ());
placements.addAll(matchObjectPlacements(region.getObjects(), size, type)); placements.addAll(matchObjectPlacements(region.getObjects(), size, type));
allObjects.addAll(region.getObjects()); allObjects.addAll(region.getObjects());
} }