mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
various minor
Increase target size remove unnecessary brush sync send chunk on biome change
This commit is contained in:
parent
3f92f12e89
commit
329df8d33b
@ -453,7 +453,7 @@ public class BukkitGetBlocks_1_14 extends CharGetBlocks {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
Runnable callback;
|
Runnable callback;
|
||||||
if (bitMask == 0) {
|
if (bitMask == 0 && biomes == null) {
|
||||||
callback = null;
|
callback = null;
|
||||||
} else {
|
} else {
|
||||||
int finalMask = bitMask;
|
int finalMask = bitMask;
|
||||||
|
@ -275,7 +275,7 @@ public class Settings extends Config {
|
|||||||
" - A value too small may break some operations (deform?)"
|
" - A value too small may break some operations (deform?)"
|
||||||
|
|
||||||
})
|
})
|
||||||
public int TARGET_SIZE = 64;
|
public int TARGET_SIZE = 8192;
|
||||||
@Comment({
|
@Comment({
|
||||||
"Force FAWE to start placing chunks regardless of whether an edit is finished processing",
|
"Force FAWE to start placing chunks regardless of whether an edit is finished processing",
|
||||||
" - A larger value will use slightly less CPU time",
|
" - A larger value will use slightly less CPU time",
|
||||||
|
@ -482,12 +482,7 @@ public class BrushTool implements DoubleActionTraceTool, ScrollTool, MovableTool
|
|||||||
Mask mask = traceMask == null ? new SolidBlockMask(editSession) : traceMask;
|
Mask mask = traceMask == null ? new SolidBlockMask(editSession) : traceMask;
|
||||||
new MaskTraverser(mask).reset(editSession);
|
new MaskTraverser(mask).reset(editSession);
|
||||||
MaskedTargetBlock tb = new MaskedTargetBlock(mask, player, range, 0.2);
|
MaskedTargetBlock tb = new MaskedTargetBlock(mask, player, range, 0.2);
|
||||||
return TaskManager.IMP.sync(new RunnableVal<Vector3>() {
|
return tb.getMaskedTargetBlock(useLastBlock);
|
||||||
@Override
|
|
||||||
public void run(Vector3 value) {
|
|
||||||
this.value = tb.getMaskedTargetBlock(useLastBlock);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean act(BrushAction action, Player player, LocalSession session) {
|
public boolean act(BrushAction action, Player player, LocalSession session) {
|
||||||
|
Loading…
Reference in New Issue
Block a user