mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Fully fix #949
This commit is contained in:
parent
4e463af1df
commit
29bebcd034
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user