Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-09-06 08:02:50 +02:00
remove broken debug
Dieser Commit ist enthalten in:
Ursprung
822bc20c7c
Commit
0c1fdcc498
@ -113,9 +113,6 @@ public class FaweBukkit implements IFawe, Listener {
|
||||
} catch (ClassNotFoundException e) {
|
||||
new ChunkListener_9();
|
||||
}
|
||||
|
||||
new TestChunkPacketSend(plugin);
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -22,17 +22,12 @@ public class TestChunkPacketSend {
|
||||
@Override
|
||||
public void onPacketSending(PacketEvent event) {
|
||||
if (event.getPacketType() != PacketType.Play.Server.MAP_CHUNK) {
|
||||
System.out.println("Wrong packet");
|
||||
return;
|
||||
}
|
||||
PacketContainer packet = event.getPacket();
|
||||
StructureModifier<Byte> bytes = packet.getBytes();
|
||||
StructureModifier<WrappedBlockData> blockData = packet.getBlockData();
|
||||
List<WrappedBlockData> values = blockData.getValues();
|
||||
System.out.println("Packet " + values.size() + " | " + blockData.size());
|
||||
System.out.println(bytes.size());
|
||||
System.out.println(packet.getByteArrays().size());
|
||||
System.out.println(packet.getBlocks().size());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -39,7 +39,6 @@ public interface IBlocks extends Trimable {
|
||||
int mask = 0;
|
||||
for (int layer = 0; layer < FaweCache.IMP.CHUNK_LAYERS; layer++) {
|
||||
if (hasSection(layer)) {
|
||||
System.out.println("Has layer 0 " + layer);
|
||||
mask += (1 << layer);
|
||||
}
|
||||
}
|
||||
|
@ -15,8 +15,6 @@ public class BatchProcessorHolder implements IBatchProcessorHolder {
|
||||
|
||||
@Override
|
||||
public IChunkSet processSet(IChunk chunk, IChunkGet get, IChunkSet set) {
|
||||
System.out.println("Process set");
|
||||
System.out.println(getProcessor());
|
||||
return getProcessor().processSet(chunk, get, set);
|
||||
}
|
||||
|
||||
@ -27,6 +25,7 @@ public class BatchProcessorHolder implements IBatchProcessorHolder {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return super.toString() + "{" + getProcessor() + "}";
|
||||
IBatchProcessor tmp = getProcessor();
|
||||
return super.toString() + "{" + (tmp == this ? "" : getProcessor()) + "}";
|
||||
}
|
||||
}
|
||||
|
@ -37,7 +37,6 @@ public interface IBatchProcessorHolder extends IBatchProcessor {
|
||||
@Override
|
||||
default IBatchProcessor join(IBatchProcessor other) {
|
||||
setProcessor(getProcessor().join(other));
|
||||
System.out.println("Join " + other + " | " + getProcessor());
|
||||
return this;
|
||||
}
|
||||
|
||||
|
@ -56,14 +56,11 @@ public class MultiBatchProcessor implements IBatchProcessor {
|
||||
@Override
|
||||
public IChunkSet processSet(IChunk chunk, IChunkGet get, IChunkSet set) {
|
||||
try {
|
||||
System.out.println("Processes len " + this.processors.length);
|
||||
for (IBatchProcessor processor : this.processors) {
|
||||
set = processor.processSet(chunk, get, set);
|
||||
if (set == null) {
|
||||
System.out.println("Return null " + processor.getClass());
|
||||
return null;
|
||||
}
|
||||
System.out.println("Process " + processor.getClass());
|
||||
}
|
||||
return set;
|
||||
} catch (Throwable e) {
|
||||
|
@ -11,7 +11,6 @@ public enum NullProcessor implements IBatchProcessor {
|
||||
INSTANCE;
|
||||
@Override
|
||||
public IChunkSet processSet(IChunk chunk, IChunkGet get, IChunkSet set) {
|
||||
System.out.println("Null process " + chunk.getX() + "," + chunk.getZ());
|
||||
return null;
|
||||
}
|
||||
|
||||
|
@ -89,8 +89,6 @@ public class SingleThreadQueueExtent extends BatchProcessorHolder implements IQu
|
||||
*/
|
||||
protected synchronized void reset() {
|
||||
if (!this.initialized) return;
|
||||
System.out.println("Reset");
|
||||
new Exception().printStackTrace();
|
||||
checkThread();
|
||||
if (!this.chunks.isEmpty()) {
|
||||
for (IChunk chunk : this.chunks.values()) {
|
||||
@ -130,7 +128,6 @@ public class SingleThreadQueueExtent extends BatchProcessorHolder implements IQu
|
||||
@Override
|
||||
public Extent addProcessor(IBatchProcessor processor) {
|
||||
join(processor);
|
||||
System.out.println("Add processor " + this.getClass());
|
||||
return this;
|
||||
}
|
||||
|
||||
@ -339,7 +336,6 @@ public class SingleThreadQueueExtent extends BatchProcessorHolder implements IQu
|
||||
chunks.clear();
|
||||
}
|
||||
pollSubmissions(0, true);
|
||||
System.out.println(submissions.size());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -47,7 +47,6 @@ public class VisualExtent extends AbstractDelegateExtent {
|
||||
@Override
|
||||
public Operation commit() {
|
||||
IQueueExtent queue = (IQueueExtent) getExtent();
|
||||
System.out.println("Send block updates");
|
||||
return null;
|
||||
}
|
||||
|
||||
@ -59,7 +58,6 @@ public class VisualExtent extends AbstractDelegateExtent {
|
||||
|
||||
public void clear() {
|
||||
IQueueExtent queue = (IQueueExtent) getExtent();
|
||||
System.out.println("Clear");
|
||||
queue.cancel();
|
||||
}
|
||||
}
|
||||
|
@ -155,7 +155,6 @@ public class RegionCommands {
|
||||
editSession.addProcessor(new ChunkSendProcessor(world, () -> Stream.of(player)));
|
||||
editSession.addProcessor(NullProcessor.INSTANCE);
|
||||
editSession.setBlocks(region, pattern);
|
||||
System.out.println("Done");
|
||||
}
|
||||
|
||||
@Command(
|
||||
|
@ -247,7 +247,7 @@ public class AbstractDelegateExtent implements Extent, LightingExtent {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return super.toString() + ":" + extent.toString();
|
||||
return super.toString() + ":" + (extent == this ? "" : extent.toString());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren