mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2024-11-25 12:25:37 +01:00
Utilize internal cache in StructureGrowthProcess (#371)
* Use whoPlacedCache * Still perform database lookup if cache is empty --------- Co-authored-by: Intelli <6790859+Intelli@users.noreply.github.com>
This commit is contained in:
parent
6045799fea
commit
2476aa2ea8
@ -21,7 +21,10 @@ class StructureGrowthProcess {
|
||||
Map<Integer, List<BlockState>> blockLists = Consumer.consumerBlockList.get(processId);
|
||||
if (blockLists.get(id) != null) {
|
||||
List<BlockState> blockStates = blockLists.get(id);
|
||||
String resultData = Lookup.whoPlaced(statement, block);
|
||||
String resultData = Lookup.whoPlacedCache(block);
|
||||
if (resultData.isEmpty()) {
|
||||
resultData = Lookup.whoPlaced(statement, block);
|
||||
}
|
||||
if (resultData.length() > 0) {
|
||||
user = resultData;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user