Fix: Copy-Paste-Brush with falsy mask (#2899)

* fix: don't attempt to load all possible world chunks when copy pasta brush empty clipboard

* chore: move check into ResizableClipboardBuilder
Dieser Commit ist enthalten in:
Pierre Maurice Schwang 2024-08-29 07:18:11 +02:00 committet von GitHub
Ursprung 75fb1cbee7
Commit f5f9ae6a85
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: B5690EEEBB952194

Datei anzeigen

@ -58,6 +58,9 @@ public class ResizableClipboardBuilder extends MemoryOptimizedHistory {
}
public Clipboard build() {
if (longSize() == 0) {
return EmptyClipboard.getInstance();
}
BlockVector3 pos1 = BlockVector3.at(minX, minY, minZ);
BlockVector3 pos2 = BlockVector3.at(maxX, maxY, maxZ);
CuboidRegion region = new CuboidRegion(pos1, pos2);