mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 05:06:44 +01:00
Fixed compatibility with FAWE and compile issue.
This commit is contained in:
parent
b4c33aaa18
commit
3473f5dc85
@ -7,8 +7,8 @@ import lombok.Setter;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.event.Cancellable;
|
||||
import org.bukkit.event.HandlerList;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
|
@ -8,8 +8,8 @@ import org.bukkit.World;
|
||||
import org.bukkit.event.Cancellable;
|
||||
import org.bukkit.event.Event;
|
||||
import org.bukkit.event.HandlerList;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
|
@ -2942,7 +2942,7 @@ import java.util.concurrent.atomic.AtomicInteger;
|
||||
boolean[] pm = plot.getMerged();
|
||||
boolean[] dm = dataPlot.getMerged();
|
||||
if (pm[0] != dm[0] || pm[1] != dm[1]) {
|
||||
PlotSquared.debug("&8 - &7Correcting merge for: " + plot);
|
||||
PlotSquared.debug(" - Correcting merge for: " + plot);
|
||||
setMerged(dataPlot, plot.getMerged());
|
||||
}
|
||||
HashMap<Flag<?>, Object> pf = plot.getFlags();
|
||||
@ -2951,7 +2951,7 @@ import java.util.concurrent.atomic.AtomicInteger;
|
||||
if (pf.size() != df.size() || !StringMan
|
||||
.isEqual(StringMan.joinOrdered(pf.values(), ","),
|
||||
StringMan.joinOrdered(df.values(), ","))) {
|
||||
PlotSquared.debug("&8 - &7Correcting flags for: " + plot);
|
||||
PlotSquared.debug(" - Correcting flags for: " + plot);
|
||||
setFlags(plot, pf);
|
||||
}
|
||||
}
|
||||
|
@ -23,6 +23,7 @@ public abstract class BasicLocalBlockQueue extends LocalBlockQueue {
|
||||
private int lastZ = Integer.MIN_VALUE;
|
||||
|
||||
public BasicLocalBlockQueue(String world) {
|
||||
super(world);
|
||||
this.world = world;
|
||||
this.modified = System.currentTimeMillis();
|
||||
}
|
||||
|
@ -8,6 +8,7 @@ public class DelegateLocalBlockQueue extends LocalBlockQueue {
|
||||
private final LocalBlockQueue parent;
|
||||
|
||||
public DelegateLocalBlockQueue(LocalBlockQueue parent) {
|
||||
super(parent.getWorld());
|
||||
this.parent = parent;
|
||||
}
|
||||
|
||||
|
@ -16,6 +16,14 @@ import java.util.Map;
|
||||
|
||||
public abstract class LocalBlockQueue {
|
||||
|
||||
/**
|
||||
* Needed for compatibility with FAWE.
|
||||
*
|
||||
* @param world unused
|
||||
*/
|
||||
@Deprecated public LocalBlockQueue(String world) {
|
||||
}
|
||||
|
||||
public ScopedLocalBlockQueue getForChunk(int x, int z) {
|
||||
int bx = x << 4;
|
||||
int bz = z << 4;
|
||||
|
@ -1,11 +1,19 @@
|
||||
package com.github.intellectualsites.plotsquared.plot.database;
|
||||
|
||||
import com.github.intellectualsites.plotsquared.plot.flag.Flag;
|
||||
import com.github.intellectualsites.plotsquared.plot.object.*;
|
||||
import com.github.intellectualsites.plotsquared.plot.object.Plot;
|
||||
import com.github.intellectualsites.plotsquared.plot.object.PlotArea;
|
||||
import com.github.intellectualsites.plotsquared.plot.object.PlotCluster;
|
||||
import com.github.intellectualsites.plotsquared.plot.object.PlotId;
|
||||
import com.github.intellectualsites.plotsquared.plot.object.RunnableVal;
|
||||
import com.github.intellectualsites.plotsquared.plot.object.comment.PlotComment;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
import java.util.*;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
|
||||
public class AbstractDBTest implements AbstractDB {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user