geforkt von Mirrors/FastAsyncWorldEdit
Add note if clipboard >= Integer.MAX_VALUE
Dieser Commit ist enthalten in:
Ursprung
ac16c9a2ba
Commit
3df080abe4
@ -78,7 +78,7 @@ public class DiskOptimizedClipboard extends LinearClipboard implements Closeable
|
|||||||
public DiskOptimizedClipboard(BlockVector3 dimensions, File file) {
|
public DiskOptimizedClipboard(BlockVector3 dimensions, File file) {
|
||||||
super(dimensions);
|
super(dimensions);
|
||||||
if (HEADER_SIZE + ((long) getVolume() << 1) >= Integer.MAX_VALUE) {
|
if (HEADER_SIZE + ((long) getVolume() << 1) >= Integer.MAX_VALUE) {
|
||||||
throw new IllegalArgumentException("Dimensions too large for this clipboard format");
|
throw new IllegalArgumentException("Dimensions too large for this clipboard format. Use //lazycopy for large selections.");
|
||||||
} else if (HEADER_SIZE + ((long) getVolume() << 1) + (long) ((getHeight() >> 2) + 1) * ((getLength() >> 2) + 1) * ((getWidth() >> 2) + 1) >= Integer.MAX_VALUE) {
|
} else if (HEADER_SIZE + ((long) getVolume() << 1) + (long) ((getHeight() >> 2) + 1) * ((getLength() >> 2) + 1) * ((getWidth() >> 2) + 1) >= Integer.MAX_VALUE) {
|
||||||
log.error("Dimensions are too large for biomes to be stored in a DiskOptimizedClipboard");
|
log.error("Dimensions are too large for biomes to be stored in a DiskOptimizedClipboard");
|
||||||
canHaveBiomes = false;
|
canHaveBiomes = false;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren