mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Stop duplicate features from hitting each other
This commit is contained in:
parent
82b995f96f
commit
1e62f8c951
@ -603,6 +603,14 @@ public interface EngineParallaxManager extends DataProvider, IObjectPlacer {
|
|||||||
f.setInterpolator(objectPlacement.getVacuumInterpolationMethod());
|
f.setInterpolator(objectPlacement.getVacuumInterpolationMethod());
|
||||||
f.setStrength(1D);
|
f.setStrength(1D);
|
||||||
|
|
||||||
|
for(IrisFeaturePositional j : rw.getFeatures())
|
||||||
|
{
|
||||||
|
if(j.getX() == xx && j.getZ() == zz)
|
||||||
|
{
|
||||||
|
continue placing;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
rw.getFeatures().add(new IrisFeaturePositional(xx, zz, f));
|
rw.getFeatures().add(new IrisFeaturePositional(xx, zz, f));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user