9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-30 04:29:05 +00:00

Async gen cap

This commit is contained in:
Daniel Mills
2020-09-09 06:47:27 -04:00
parent 88b60ea945
commit 265807941a
5 changed files with 95 additions and 16 deletions

View File

@@ -487,15 +487,23 @@ public class StructureTemplate implements Listener, IObjectPlacer
Location center = getTileBounds(l).getCenter();
TileResult r = structure.getTile(rng, center.getX(), center.getY(), center.getZ());
int v1 = getVariant(getTileBounds(l), r.getTile());
int v2 = getVariant(getTileBounds(l), tileType);
if(r == null || !r.getTile().getForceObjects().get(v1).getLoadKey().equals(
tileType.getForceObjects().get(v2)
.getLoadKey()))
try
{
continue;
int v1 = getVariant(getTileBounds(l), r.getTile());
int v2 = getVariant(getTileBounds(l), tileType);
if(r == null || !r.getTile().getForceObjects().get(v1).getLoadKey().equals(
tileType.getForceObjects().get(v2)
.getLoadKey()))
{
continue;
}
}
catch(Throwable e)
{
}
}