mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
temp fix for undo
also fix inspect brush using wrong ids
This commit is contained in:
parent
0087a0d6ab
commit
4c32949210
@ -90,7 +90,7 @@ public class InspectBrush extends BrushTool implements DoubleActionTraceTool {
|
|||||||
int index = value.getIndex();
|
int index = value.getIndex();
|
||||||
long age = System.currentTimeMillis() - value.getBDFile().lastModified();
|
long age = System.currentTimeMillis() - value.getBDFile().lastModified();
|
||||||
String ageFormatted = MainUtil.secToTime(age / 1000);
|
String ageFormatted = MainUtil.secToTime(age / 1000);
|
||||||
BBC.TOOL_INSPECT_INFO.send(player, name, BlockState.getFromInternalId(from).getAsString(), BlockState.getFromInternalId(to).getAsString(), ageFormatted);
|
BBC.TOOL_INSPECT_INFO.send(player, name, BlockState.getFromOrdinal(from).getAsString(), BlockState.getFromOrdinal(to).getAsString(), ageFormatted);
|
||||||
count.incrementAndGet();
|
count.incrementAndGet();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -145,6 +145,7 @@ public abstract class FaweChangeSet implements ChangeSet, IBatchProcessor, Close
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public synchronized IChunkSet processSet(IChunk chunk, IChunkGet get, IChunkSet set) {
|
public synchronized IChunkSet processSet(IChunk chunk, IChunkGet get, IChunkSet set) {
|
||||||
|
System.out.println("Add chunk " + chunk.getX() + "," + chunk.getZ() + " | " + set.getBitMask());
|
||||||
int bx = chunk.getX() << 4;
|
int bx = chunk.getX() << 4;
|
||||||
int bz = chunk.getZ() << 4;
|
int bz = chunk.getZ() << 4;
|
||||||
|
|
||||||
|
@ -328,7 +328,6 @@ public class EditSessionBuilder {
|
|||||||
queue = parallel.getExtent();
|
queue = parallel.getExtent();
|
||||||
extent = parallel;
|
extent = parallel;
|
||||||
} else {
|
} else {
|
||||||
System.out.println("FAWE is in single threaded mode (performance reduced)");
|
|
||||||
extent = queue = Fawe.get().getQueueHandler().getQueue(world);
|
extent = queue = Fawe.get().getQueueHandler().getQueue(world);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -26,6 +26,7 @@ import static com.sk89q.worldedit.regions.Regions.maximumBlockY;
|
|||||||
import static com.sk89q.worldedit.regions.Regions.minimumBlockY;
|
import static com.sk89q.worldedit.regions.Regions.minimumBlockY;
|
||||||
|
|
||||||
import com.boydti.fawe.FaweCache;
|
import com.boydti.fawe.FaweCache;
|
||||||
|
import com.boydti.fawe.beta.Filter;
|
||||||
import com.boydti.fawe.config.BBC;
|
import com.boydti.fawe.config.BBC;
|
||||||
import com.boydti.fawe.config.Settings;
|
import com.boydti.fawe.config.Settings;
|
||||||
import com.boydti.fawe.object.FaweLimit;
|
import com.boydti.fawe.object.FaweLimit;
|
||||||
@ -204,7 +205,7 @@ public class EditSession extends PassthroughExtent implements AutoCloseable {
|
|||||||
|
|
||||||
private final MutableBlockVector3 mutablebv = new MutableBlockVector3();
|
private final MutableBlockVector3 mutablebv = new MutableBlockVector3();
|
||||||
|
|
||||||
private int changes = 0;
|
private int changes = -1;
|
||||||
private final BlockBag blockBag;
|
private final BlockBag blockBag;
|
||||||
|
|
||||||
private final int maxY;
|
private final int maxY;
|
||||||
|
@ -473,7 +473,9 @@ public class LocalSession implements TextureHolder {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Don't store anything if no changes were made
|
// Don't store anything if no changes were made
|
||||||
if (editSession.size() == 0) return;
|
if (editSession.size() == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
FaweChangeSet changeSet = (FaweChangeSet) editSession.getChangeSet();
|
FaweChangeSet changeSet = (FaweChangeSet) editSession.getChangeSet();
|
||||||
if (changeSet.isEmpty()) {
|
if (changeSet.isEmpty()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user