Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-27 08:30:09 +01:00
Fix inventory acknowledgements being dropped sometimes (#2848)
Dieser Commit ist enthalten in:
Ursprung
9798ec296a
Commit
823eb1f392
@ -18,17 +18,17 @@
|
||||
package com.viaversion.viaversion.protocols.protocol1_17to1_16_4.storage;
|
||||
|
||||
import com.viaversion.viaversion.api.connection.StorableObject;
|
||||
import it.unimi.dsi.fastutil.ints.IntOpenHashSet;
|
||||
import it.unimi.dsi.fastutil.ints.IntSet;
|
||||
import it.unimi.dsi.fastutil.ints.IntArrayList;
|
||||
import it.unimi.dsi.fastutil.ints.IntList;
|
||||
|
||||
public final class InventoryAcknowledgements implements StorableObject {
|
||||
private final IntSet ids = new IntOpenHashSet();
|
||||
private final IntList ids = new IntArrayList();
|
||||
|
||||
public void addId(int id) {
|
||||
ids.add(id);
|
||||
}
|
||||
|
||||
public boolean removeId(int id) {
|
||||
return ids.remove(id);
|
||||
return ids.rem(id);
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren