More information on recursive and other parallax object placement issues

This commit is contained in:
CocoTheOwner 2021-03-08 15:14:13 +01:00
parent d166cc2a4a
commit a8146a2e81

View File

@ -436,7 +436,14 @@ public interface EngineParallaxManager extends DataProvider, IObjectPlacer {
if(rng.chance(i.getChance() + rng.d(-0.005, 0.005)) && rng.chance(getComplex().getObjectChanceStream().get(x<<4, z<<4)))
{
try {
place(rng, x << 4, z << 4, i);
} catch(Throwable e) {
Iris.error("Failed to place objects in the following biome: " + biome.getName());
Iris.error("Object(s) " + i.getPlace().toString(", ") + " (" + e.getClass().getSimpleName() + ").");
Iris.error("Are these objects missing?");
e.printStackTrace();
}
}
}
}
@ -515,8 +522,6 @@ public interface EngineParallaxManager extends DataProvider, IObjectPlacer {
}
default void place(RNG rng, int x, int forceY, int z, IrisObjectPlacement objectPlacement)
{
try
{
for(int i = 0; i < objectPlacement.getDensity(); i++)
{
@ -554,13 +559,6 @@ public interface EngineParallaxManager extends DataProvider, IObjectPlacer {
}
}
catch(Throwable e)
{
Iris.error("Failed to place one of the following object(s) " + objectPlacement.getPlace().toString(", ") + " (" + e.getClass().getSimpleName() + "). Are these objects missing?");
e.printStackTrace();
}
}
default void updateParallaxChunkObjectData(int minY, int maxY, int x, int z, IrisObject v)
{
ParallaxChunkMeta meta = getParallaxAccess().getMetaRW(x >> 4, z >> 4);