Don't setextent twice in replace

Dieser Commit ist enthalten in:
dordsor21 2021-09-21 14:51:39 +01:00
Ursprung 971977a66a
Commit 23ca345a2e
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B

Datei anzeigen

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