Fixed some lookups being slow when specifying an action

This commit is contained in:
Intelli 2022-02-07 17:39:33 -07:00
parent 70f74ced0f
commit 3a0c86a614

View File

@ -627,7 +627,7 @@ public class Lookup extends Queue {
if ((index.equals("") && restrictWorld)) {
index = "USE INDEX(wid) ";
}
if ((radius != null || actionList.contains(5))) {
if ((radius != null || actionList.size() > 0)) {
index = "";
}
}
@ -645,7 +645,7 @@ public class Lookup extends Queue {
if ((index.equals("") && restrictWorld)) {
index = "INDEXED BY block_index ";
}
if ((radius != null || actionList.contains(5))) {
if ((radius != null || actionList.size() > 0)) {
index = "";
}
}