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;
|
this.expiryTimeMillisDebug = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Getter
|
|
||||||
private record CooldownSettings(int cooldownMillis, int maxCount) {
|
private record CooldownSettings(int cooldownMillis, int maxCount) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
private static class CooldownTracker {
|
private class CooldownTracker {
|
||||||
private long count;
|
private long count;
|
||||||
@Setter
|
@Setter
|
||||||
private long expiryTime;
|
private long expiryTime;
|
||||||
|
|
@ -89,6 +88,5 @@ public class PacketCooldownManager {
|
||||||
public void incrementCount() {
|
public void incrementCount() {
|
||||||
this.count++;
|
this.count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -38,8 +38,7 @@ import org.geysermc.cumulus.form.impl.FormDefinitions;
|
||||||
import org.geysermc.geyser.GeyserImpl;
|
import org.geysermc.geyser.GeyserImpl;
|
||||||
import org.geysermc.geyser.session.GeyserSession;
|
import org.geysermc.geyser.session.GeyserSession;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.LinkedList;
|
||||||
import java.util.List;
|
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
import java.util.concurrent.atomic.AtomicInteger;
|
import java.util.concurrent.atomic.AtomicInteger;
|
||||||
|
|
@ -56,7 +55,7 @@ public class FormCache {
|
||||||
private final FormDefinitions formDefinitions = FormDefinitions.instance();
|
private final FormDefinitions formDefinitions = FormDefinitions.instance();
|
||||||
private final AtomicInteger formIdCounter = new AtomicInteger(0);
|
private final AtomicInteger formIdCounter = new AtomicInteger(0);
|
||||||
private final Int2ObjectMap<Form> forms = new Int2ObjectOpenHashMap<>();
|
private final Int2ObjectMap<Form> forms = new Int2ObjectOpenHashMap<>();
|
||||||
List<Integer> formsOrderList = new ArrayList<>();
|
LinkedList<Integer> formsOrderList = new LinkedList<>();
|
||||||
private final GeyserSession session;
|
private final GeyserSession session;
|
||||||
|
|
||||||
public int addForm(Form form) {
|
public int addForm(Form form) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue