mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Optimize parallax
This commit is contained in:
parent
b5fa41cdc1
commit
70ae1cce4b
@ -52,6 +52,25 @@ public interface ParallaxAccess {
|
||||
getMetaRW(x, z).setParallaxGenerated(v);
|
||||
}
|
||||
|
||||
default void maxMin(int x, int z, int value) {
|
||||
ParallaxChunkMeta meat = getMetaRW(x, z);
|
||||
|
||||
if(value > meat.getMaxObject())
|
||||
{
|
||||
meat.setMaxObject(value);
|
||||
}
|
||||
|
||||
if(meat.getMinObject() <=-1)
|
||||
{
|
||||
meat.setMinObject(value);
|
||||
}
|
||||
|
||||
if(value < meat.getMinObject())
|
||||
{
|
||||
meat.setMinObject(value);
|
||||
}
|
||||
}
|
||||
|
||||
default void setChunkGenerated(int x, int z, boolean v) {
|
||||
getMetaRW(x, z).setGenerated(v);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user