We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7424037 commit c91f460Copy full SHA for c91f460
src/main/java/net/coreprotect/api/QueueLookup.java
@@ -3,6 +3,7 @@
3
import java.util.ArrayList;
4
import java.util.Collections;
5
import java.util.List;
6
+import java.util.ListIterator;
7
import java.util.Map;
8
9
import org.bukkit.Location;
@@ -49,7 +50,9 @@ public static List<String[]> performLookup(Block block) {
49
50
Map<Integer, Object> consumerObject = Consumer.consumerObjects.get(currentConsumer);
51
52
Location oldLocation = block.getLocation();
- for (Object[] data : consumerData) {
53
+ ListIterator<Object[]> iterator = consumerData.listIterator();
54
+ while (iterator.hasNext()) {
55
+ Object[] data = iterator.next();
56
int id = (int) data[0];
57
int action = (int) data[1];
58
if (action != Process.BLOCK_BREAK && action != Process.BLOCK_PLACE) {
0 commit comments