Search in sources :

Example 1 with ForgetfulExtentBuffer

use of com.sk89q.worldedit.extent.buffer.ForgetfulExtentBuffer in project FastAsyncWorldEdit by IntellectualSites.

the class AbstractDelegateExtent method disableQueue.

@Override
public void disableQueue() {
    try {
        if (!(extent instanceof ForgetfulExtentBuffer)) {
            // placeholder
            extent.disableQueue();
        }
    } catch (FaweException ignored) {
    }
    if (extent instanceof AbstractDelegateExtent) {
        Extent next = ((AbstractDelegateExtent) extent).getExtent();
        new ExtentTraverser(this).setNext(next);
    } else {
        LOGGER.error("Cannot disable queue");
    }
}
Also used : ForgetfulExtentBuffer(com.sk89q.worldedit.extent.buffer.ForgetfulExtentBuffer) ExtentTraverser(com.fastasyncworldedit.core.util.ExtentTraverser) HistoryExtent(com.fastasyncworldedit.core.extent.HistoryExtent) NullExtent(com.fastasyncworldedit.core.extent.NullExtent) FaweException(com.fastasyncworldedit.core.internal.exception.FaweException)

Aggregations

HistoryExtent (com.fastasyncworldedit.core.extent.HistoryExtent)1 NullExtent (com.fastasyncworldedit.core.extent.NullExtent)1 FaweException (com.fastasyncworldedit.core.internal.exception.FaweException)1 ExtentTraverser (com.fastasyncworldedit.core.util.ExtentTraverser)1 ForgetfulExtentBuffer (com.sk89q.worldedit.extent.buffer.ForgetfulExtentBuffer)1