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
1 changed files with 2 additions and 2 deletions

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 = "";
}
}