Fixes #302
This commit is contained in:
parent
07f4f61cc2
commit
b2ef1cbc50
@ -103,7 +103,7 @@ public class Settings extends Config {
|
||||
" - Faster as it avoids duplicate block checks",
|
||||
" - Worse compression since dispatch order is different"
|
||||
})
|
||||
public static boolean COMBINE_STAGES = false;
|
||||
public static boolean COMBINE_STAGES = true;
|
||||
@Comment({
|
||||
"Higher compression reduces the size of history at the expense of CPU",
|
||||
"0 = Uncompressed byte array",
|
||||
|
@ -56,6 +56,7 @@ public abstract class NMSMappedFaweQueue<WORLD, CHUNK, CHUNKSECTION, SECTION> ex
|
||||
public void end(FaweChunk chunk) {
|
||||
super.end(chunk);
|
||||
if (Settings.LIGHTING.MODE == 0) {
|
||||
refreshChunk(chunk);
|
||||
return;
|
||||
}
|
||||
if (relighter == null) {
|
||||
|
@ -105,6 +105,10 @@ public class SetQueue {
|
||||
completer = new ExecutorCompletionService(pool);
|
||||
e.printStackTrace();
|
||||
}
|
||||
if (pool.getQueuedSubmissionCount() != 0 || pool.getRunningThreadCount() != 0 || pool.getQueuedTaskCount() != 0) {
|
||||
Fawe.debug("Error flushing parallel pool");
|
||||
pool.awaitQuiescence(Long.MAX_VALUE, TimeUnit.MILLISECONDS);
|
||||
}
|
||||
secondLast = System.currentTimeMillis();
|
||||
} catch (Throwable e) {
|
||||
e.printStackTrace();
|
||||
|
@ -16,12 +16,14 @@ public class LocationMaskedPlayerWrapper extends PlayerWrapper {
|
||||
|
||||
@Override
|
||||
public WorldVector getBlockIn() {
|
||||
return new WorldVector((LocalWorld) getWorld(), position);
|
||||
WorldVector pos = getPosition();
|
||||
return WorldVector.toBlockPoint(pos.getWorld(), pos.getX(), pos.getY(), pos.getZ());
|
||||
}
|
||||
|
||||
@Override
|
||||
public WorldVector getBlockOn() {
|
||||
return new WorldVector((LocalWorld) getWorld(), position.subtract(0, 1, 0));
|
||||
WorldVector pos = getPosition();
|
||||
return WorldVector.toBlockPoint(pos.getWorld(), pos.getX(), pos.getY() - 1, pos.getZ());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user