Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-25 10:30:04 +01:00
fix: ignore clipboard origin when pasting to match P2 behaviour (#2336)
Dieser Commit ist enthalten in:
Ursprung
a669be2041
Commit
888683d83b
@ -183,6 +183,7 @@ public class FaweDelegateRegionManager {
|
|||||||
.findByFile(schematicFile)
|
.findByFile(schematicFile)
|
||||||
.getReader(new FileInputStream(schematicFile))
|
.getReader(new FileInputStream(schematicFile))
|
||||||
.read();
|
.read();
|
||||||
|
clip.setOrigin(clip.getRegion().getMinimumPoint());
|
||||||
clip.paste(scheditsession, to, true, true, true);
|
clip.paste(scheditsession, to, true, true, true);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
@ -152,6 +152,7 @@ public class FaweDelegateSchematicHandler {
|
|||||||
final BlockVector3 to = BlockVector3
|
final BlockVector3 to = BlockVector3
|
||||||
.at(region.getMinimumPoint().getX() + xOffset, y_offset_actual, region.getMinimumPoint().getZ() + zOffset);
|
.at(region.getMinimumPoint().getX() + xOffset, y_offset_actual, region.getMinimumPoint().getZ() + zOffset);
|
||||||
final Clipboard clipboard = schematic.getClipboard();
|
final Clipboard clipboard = schematic.getClipboard();
|
||||||
|
clipboard.setOrigin(clipboard.getRegion().getMinimumPoint());
|
||||||
clipboard.paste(editSession, to, true, false, true);
|
clipboard.paste(editSession, to, true, false, true);
|
||||||
if (whenDone != null) {
|
if (whenDone != null) {
|
||||||
whenDone.value = true;
|
whenDone.value = true;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren