mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Parallax optimization
This commit is contained in:
parent
948f823744
commit
5a557e6f00
@ -105,7 +105,7 @@ public interface EngineParallaxManager extends DataProvider, IObjectPlacer
|
|||||||
{
|
{
|
||||||
for(int j= z; j < z + data.getDepth(); j++)
|
for(int j= z; j < z + data.getDepth(); j++)
|
||||||
{
|
{
|
||||||
for(int k = 0; k < getEngine().getHeight(); k++)
|
for(int k = Math.max(0, meta.getMinObject()-16); k < Math.min(getEngine().getHeight(), meta.getMaxObject()+16); k++)
|
||||||
{
|
{
|
||||||
BlockData d = getParallaxAccess().getBlock(i, k, j);
|
BlockData d = getParallaxAccess().getBlock(i, k, j);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user