Removed unused import
This commit is contained in:
parent
a1e158eb01
commit
a2228fecb7
1 changed files with 2 additions and 3 deletions
|
@ -11,7 +11,6 @@ import nl.SBDeveloper.V10Lift.sbutils.LocationSerializer;
|
||||||
import nl.SBDeveloper.V10Lift.utils.ConfigUtil;
|
import nl.SBDeveloper.V10Lift.utils.ConfigUtil;
|
||||||
import nl.SBDeveloper.V10Lift.utils.DirectionUtil;
|
import nl.SBDeveloper.V10Lift.utils.DirectionUtil;
|
||||||
import nl.SBDeveloper.V10Lift.utils.DoorUtil;
|
import nl.SBDeveloper.V10Lift.utils.DoorUtil;
|
||||||
import org.apache.commons.collections4.map.LinkedMap;
|
|
||||||
import org.bukkit.*;
|
import org.bukkit.*;
|
||||||
import org.bukkit.block.Block;
|
import org.bukkit.block.Block;
|
||||||
import org.bukkit.block.BlockFace;
|
import org.bukkit.block.BlockFace;
|
||||||
|
@ -942,7 +941,7 @@ public class V10LiftAPI {
|
||||||
if (liftName == null || queue == null || !DataManager.containsLift(liftName)) return false;
|
if (liftName == null || queue == null || !DataManager.containsLift(liftName)) return false;
|
||||||
|
|
||||||
Lift lift = DataManager.getLift(liftName);
|
Lift lift = DataManager.getLift(liftName);
|
||||||
lift.setQueue(new LinkedMap<>());
|
lift.setQueue(new LinkedHashMap<>());
|
||||||
for (Map.Entry<String, Floor> e : queue.entrySet()) {
|
for (Map.Entry<String, Floor> e : queue.entrySet()) {
|
||||||
addToQueue(liftName, e.getValue(), e.getKey());
|
addToQueue(liftName, e.getValue(), e.getKey());
|
||||||
}
|
}
|
||||||
|
@ -990,7 +989,7 @@ public class V10LiftAPI {
|
||||||
|
|
||||||
Lift l = DataManager.getLift(lift);
|
Lift l = DataManager.getLift(lift);
|
||||||
if (l.getQueue() == null) {
|
if (l.getQueue() == null) {
|
||||||
l.setQueue(new LinkedMap<>());
|
l.setQueue(new LinkedHashMap<>());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!l.getQueue().containsValue(floor)) {
|
if (!l.getQueue().containsValue(floor)) {
|
||||||
|
|
Loading…
Reference in a new issue