3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-17 00:20:09 +01:00
Dieser Commit ist enthalten in:
SirYwell 2023-01-14 21:17:28 +01:00
Ursprung fe0da8232b
Commit f7e022d2c8
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden

Datei anzeigen

@ -1,5 +1,6 @@
package com.fastasyncworldedit.core.extent.clipboard;
import com.fastasyncworldedit.core.util.MathMan;
import com.fastasyncworldedit.core.util.io.MemoryFile;
import com.sk89q.jnbt.CompoundTag;
import com.sk89q.worldedit.WorldEditException;
@ -90,7 +91,13 @@ public sealed class DiskBasedClipboard implements Clipboard {
}
private static long requiredBiomeEntries(BlockVector3 dimensions) {
return requiredEntries(dimensions.divide(4));
// biomes are based on 4*4*4, so we can divide the dimensions of the region by 4
BlockVector3 biomeDimensions = BlockVector3.at(
MathMan.ceilDiv(dimensions.getX(), 4),
MathMan.ceilDiv(dimensions.getY(), 4),
MathMan.ceilDiv(dimensions.getZ(), 4)
);
return requiredEntries(biomeDimensions);
}
@Override