The extent minY check in clipboard paste is un-needed as it is handled gracefully by FAWE (#1806)

- Fixes #1771
This commit is contained in:
Jordan 2022-06-16 15:24:00 +01:00 committed by GitHub
parent 1da987d594
commit f2bab901f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -391,9 +391,6 @@ public interface Clipboard extends Extent, Iterable<BlockVector3>, Closeable, Fl
if (!pasteAir && block.getBlockType().getMaterial().isAir()) { if (!pasteAir && block.getBlockType().getMaterial().isAir()) {
continue; continue;
} }
if (pos.getY() < extent.getMinY()) {
throw new RuntimeException("Y-Position cannot be less than the extent's minimum Y!");
}
extent.setBlock(xx, yy, zz, block); extent.setBlock(xx, yy, zz, block);
} }
// Entity offset is the paste location subtract the clipboard origin (entity's location is already relative to the world origin) // Entity offset is the paste location subtract the clipboard origin (entity's location is already relative to the world origin)