3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-26 02:50:06 +01:00
Dieser Commit ist enthalten in:
dordsor21 2021-08-25 15:32:25 +01:00
Ursprung 4e463af1df
Commit 29bebcd034
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B

Datei anzeigen

@ -623,15 +623,17 @@ public class LocalSession implements TextureHolder {
setDirty(); setDirty();
historyNegativeIndex--; historyNegativeIndex--;
ChangeSet changeSet = getChangeSet(history.get(getHistoryIndex())); ChangeSet changeSet = getChangeSet(history.get(getHistoryIndex()));
try (EditSession newEditSession = new EditSessionBuilder(world) EditSessionBuilder builder = new EditSessionBuilder(world)
.allowedRegionsEverywhere()
.checkMemory(false) .checkMemory(false)
.changeSetNull() .changeSetNull()
.fastmode(false) .fastmode(false)
.limitUnprocessed((Player) actor) .limitUnprocessed((Player) actor)
.player((Player) actor) .player((Player) actor)
.blockBag(getBlockBag((Player) actor)) .blockBag(getBlockBag((Player) actor));
.build()) { if (!actor.getLimit().RESTRICT_HISTORY_TO_REGIONS) {
builder.allowedRegionsEverywhere();
}
try (EditSession newEditSession = builder.build()) {
newEditSession.setBlocks(changeSet, ChangeSetExecutor.Type.REDO); newEditSession.setBlocks(changeSet, ChangeSetExecutor.Type.REDO);
return newEditSession; return newEditSession;
} }