Merge branch '1.16.5' of gitlab.com:jeseibel/minecraft-lod-mod into 1.16.5

This commit is contained in:
James Seibel
2021-12-14 23:28:54 -06:00
2 changed files with 9 additions and 2 deletions
@@ -62,6 +62,15 @@ public class WrapperFactory implements IWrapperFactory
return new ChunkPosWrapper();
}
@Override
public AbstractChunkPosWrapper createChunkPos(long xAndZPositionCombined)
{
int x = (int) (xAndZPositionCombined & Integer.MAX_VALUE);
int z = (int) (xAndZPositionCombined >> Long.SIZE / 2) & Integer.MAX_VALUE;
return new ChunkPosWrapper(x, z);
}
@Override
public AbstractChunkPosWrapper createChunkPos(int x, int z)
{
@@ -145,6 +145,4 @@ public class WorldWrapper implements IWorldWrapper
// TODO this is depreciated, what should we use instead?
return world.getSeaLevel();
}
}