Fix inventory mode 2 undo

This commit is contained in:
Jesse Boyd 2018-09-25 15:37:00 +10:00
parent 28ee68f0a6
commit 934897ff1c
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
2 changed files with 2 additions and 0 deletions

View File

@ -77,6 +77,7 @@ public class BlockBagChangeSet extends AbstractDelegateChangeSet {
@Override
public void add(int x, int y, int z, BaseBlock from, BaseBlock to) {
check(from.getCombined(), to.getCombined());
super.add(x, y, z, from, to);
}
public void check(int combinedFrom, int combinedTo) {

View File

@ -1575,6 +1575,7 @@ public class EditSession extends AbstractDelegateExtent implements HasFaweQueue,
public boolean canBypassAll(Region region, boolean get, boolean set) {
if (wrapped) return false;
if (history != null) return false;
FaweRegionExtent regionExtent = getRegionExtent();
if (!(region instanceof CuboidRegion)) return false;
if (regionExtent != null) {