mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Fix моей тупости
Вроде все работает нет времени в данный момент
This commit is contained in:
parent
74d9a3b1cd
commit
cea4a4213c
2 changed files with 4 additions and 7 deletions
|
|
@ -75,13 +75,12 @@ public class PacketCooldownManager {
|
|||
this.expiryTimeMillisDebug = 0;
|
||||
}
|
||||
|
||||
@Getter
|
||||
private record CooldownSettings(int cooldownMillis, int maxCount) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
@Getter
|
||||
private static class CooldownTracker {
|
||||
private class CooldownTracker {
|
||||
private long count;
|
||||
@Setter
|
||||
private long expiryTime;
|
||||
|
|
@ -89,6 +88,5 @@ public class PacketCooldownManager {
|
|||
public void incrementCount() {
|
||||
this.count++;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,8 +38,7 @@ import org.geysermc.cumulus.form.impl.FormDefinitions;
|
|||
import org.geysermc.geyser.GeyserImpl;
|
||||
import org.geysermc.geyser.session.GeyserSession;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.LinkedList;
|
||||
import java.util.Optional;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
|
@ -56,7 +55,7 @@ public class FormCache {
|
|||
private final FormDefinitions formDefinitions = FormDefinitions.instance();
|
||||
private final AtomicInteger formIdCounter = new AtomicInteger(0);
|
||||
private final Int2ObjectMap<Form> forms = new Int2ObjectOpenHashMap<>();
|
||||
List<Integer> formsOrderList = new ArrayList<>();
|
||||
LinkedList<Integer> formsOrderList = new LinkedList<>();
|
||||
private final GeyserSession session;
|
||||
|
||||
public int addForm(Form form) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue