Skip to content

Instantly share code, notes, and snippets.

@NeusFear
Created April 21, 2019 19:27
Show Gist options
  • Save NeusFear/3677821ad5f85cc5c0169c53721ff8f1 to your computer and use it in GitHub Desktop.
Save NeusFear/3677821ad5f85cc5c0169c53721ff8f1 to your computer and use it in GitHub Desktop.
public static void generateRow(Vector3i smallChunk, Vector3i bigChunk, World world, int x) {
for (int z = smallChunk.getZ(); z <= bigChunk.getZ(); z++) {
world.loadChunk(x, 0, z, false);
world.regenerateChunk(x, 0, z, ChunkRegenerateFlags.CREATE);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment