Apply source function after source mask in ForwardExtentCopy.

The source function should only get applied to actually copied blocks.
This commit is contained in:
wizjany
2019-03-01 21:15:21 -05:00
parent f46c70093c
commit e53962dadd
3 changed files with 9 additions and 7 deletions

View File

@ -1252,7 +1252,7 @@ public class EditSession implements Extent, AutoCloseable {
BlockVector3 to = region.getMinimumPoint();
// Remove the original blocks
com.sk89q.worldedit.function.pattern.Pattern pattern = replacement != null ?
Pattern pattern = replacement != null ?
replacement :
new BlockPattern(BlockTypes.AIR.getDefaultState());
BlockReplace remove = new BlockReplace(this, pattern);