3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-27 03:12:37 +01:00

temp fix for undo

also fix inspect brush using wrong ids
Dieser Commit ist enthalten in:
Jesse Boyd 2019-11-18 07:23:48 +00:00
Ursprung 0087a0d6ab
Commit 4c32949210
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 59F1DE6293AF6E1F
5 geänderte Dateien mit 7 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -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;
} }

Datei anzeigen

@ -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;

Datei anzeigen

@ -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 {

Datei anzeigen

@ -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;

Datei anzeigen

@ -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()) {