mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-12-01 07:03:52 +01:00
Fixes #601
This commit is contained in:
parent
33e162eafd
commit
283fd746d5
@ -177,7 +177,7 @@ public class StructureFormat implements ClipboardReader, ClipboardWriter {
|
||||
ArrayList<HashMap<String, Object>> palette = new ArrayList<>();
|
||||
for (Vector point : region) {
|
||||
BaseBlock block = clipboard.getBlock(point);
|
||||
if (block.getId() == 217) block = FaweCache.getBlock(0, 0); // Void
|
||||
if (block.getId() == 217) continue; // Void
|
||||
int combined = FaweCache.getCombined(block);
|
||||
int index = indexes[combined];
|
||||
if (index != -1) {
|
||||
@ -215,9 +215,8 @@ public class StructureFormat implements ClipboardReader, ClipboardWriter {
|
||||
Vector min = region.getMinimumPoint();
|
||||
for (Vector point : region) {
|
||||
BaseBlock block = clipboard.getBlock(point);
|
||||
if (block.getId() == 217) block = FaweCache.getBlock(0, 0); // Void
|
||||
if (block.getId() == 217) continue; // Void
|
||||
int combined = FaweCache.getCombined(block);
|
||||
if (combined >> 4 == 217) combined = 0; // Structure void
|
||||
int index = indexes[combined];
|
||||
List<Integer> pos = Arrays.asList((int) (point.getX() - min.getX()), (int) (point.getY() - min.getY()), (int) (point.getZ() - min.getZ()));
|
||||
if (!block.hasNbtData()) {
|
||||
|
Loading…
Reference in New Issue
Block a user