mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2024-12-27 17:37:34 +01:00
Fixed some lookups being slow when specifying an action
This commit is contained in:
parent
70f74ced0f
commit
3a0c86a614
@ -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 = "";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user