mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
More information on recursive and other parallax object placement issues
This commit is contained in:
parent
d166cc2a4a
commit
a8146a2e81
@ -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)))
|
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);
|
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)
|
default void place(RNG rng, int x, int forceY, int z, IrisObjectPlacement objectPlacement)
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
{
|
||||||
for(int i = 0; i < objectPlacement.getDensity(); i++)
|
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)
|
default void updateParallaxChunkObjectData(int minY, int maxY, int x, int z, IrisObject v)
|
||||||
{
|
{
|
||||||
ParallaxChunkMeta meta = getParallaxAccess().getMetaRW(x >> 4, z >> 4);
|
ParallaxChunkMeta meta = getParallaxAccess().getMetaRW(x >> 4, z >> 4);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user