mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-23 08:30:34 +00:00
Fix npes
This commit is contained in:
1 parent
31320b4ab7
commit
6cb48e76a8
5 files changed
+29
-2
No files matched your search
@@ -353,9 +353,12 @@ public abstract class ParallaxTerrainProvider extends TopographicTerrainProvider
|
||||
placeObject(k, i, j, random.nextParallelRNG((34 * ((i * 30) + (j * 30) + g++) * i * j) + i - j + 3566522));
|
||||
}
|
||||
|
||||
for(IrisObjectPlacement k : r.getSurfaceObjects())
|
||||
if(r != null)
|
||||
{
|
||||
placeObject(k, i, j, random.nextParallelRNG((34 * ((i * 30) + (j * 30) + g++) * i * j) + i - j + 3569222));
|
||||
for(IrisObjectPlacement k : r.getSurfaceObjects())
|
||||
{
|
||||
placeObject(k, i, j, random.nextParallelRNG((34 * ((i * 30) + (j * 30) + g++) * i * j) + i - j + 3569222));
|
||||
}
|
||||
}
|
||||
|
||||
return g;
|
||||
|
||||
Reference in new issue
Block a user