mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2025-02-18 02:02:29 +01:00
Fixed entities not being excluded when using the "exclude" parameter
This commit is contained in:
parent
e68daef7db
commit
38f1e304e0
@ -559,7 +559,7 @@ public class Lookup extends Queue {
|
||||
queryEntity = queryEntity.replace("type NOT IN(" + (excludeBlock.length() > 0 ? excludeBlock : "0") + ")", "type NOT IN(" + (excludeEntity.length() > 0 ? excludeEntity : "0") + ")");
|
||||
}
|
||||
|
||||
String baseQuery = (includeEntity.length() > 0 ? queryEntity : queryBlock);
|
||||
String baseQuery = ((!includeEntity.isEmpty() || !excludeEntity.isEmpty()) ? queryEntity : queryBlock);
|
||||
if (limitOffset > -1 && limitCount > -1) {
|
||||
queryLimit = " LIMIT " + limitOffset + ", " + limitCount + "";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user