mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Get the real engine
This commit is contained in:
parent
7d24a61ae8
commit
b217162cad
@ -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());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user