Optimizations to schematic loading / pasting -> ~10,000,000 bps

The downside is it completely ignores entities and such, so WorldEdit is
the way to go if you need precision but don't care for large sizes or
speed.
This commit is contained in:
boy0001
2015-07-23 02:33:22 +10:00
parent 5ec4c244d2
commit d09dbee3c7
9 changed files with 296 additions and 174 deletions

View File

@ -39,7 +39,7 @@ import com.intellectualcrafters.plot.util.MainUtil;
* @author Empire92
*/
@SuppressWarnings("javadoc")
public class Plot implements Cloneable {
public class Plot {
/**
* plot ID
*/
@ -251,20 +251,6 @@ public class Plot implements Cloneable {
return this.members;
}
/**
* Get a clone of the plot
*
* @return Plot
*/
@Override
public Object clone() throws CloneNotSupportedException {
final Plot p = (Plot) super.clone();
if (!p.equals(this) || (p != this)) {
return new Plot(this.id, this.owner, this.trusted, this.members, this.denied, this.settings.getAlias(), this.settings.getPosition(), this.settings.flags.values(), this.world, this.settings.getMerged());
}
return p;
}
/**
* Deny someone (use DBFunc.addDenied() as well)
*