Don't setextent twice in replace

This commit is contained in:
dordsor21 2021-09-21 14:51:39 +01:00
parent 971977a66a
commit 23ca345a2e
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -325,9 +325,6 @@ public class RegionCommands {
((AbstractExtentMask) from).setExtent(editSession);
//FAWE end
}
if (from instanceof AbstractExtentMask) {
((AbstractExtentMask) from).setExtent(editSession);
}
int affected = editSession.replaceBlocks(region, from, to);
actor.print(Caption.of("worldedit.replace.replaced", TextComponent.of(affected)));
return affected;