3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-08 17:20:24 +01:00

Merge remote-tracking branch 'origin/master' into dev

Dieser Commit ist enthalten in:
Nassim Jahnke 2022-03-24 19:07:28 +01:00
Commit d1699fbb8d
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 6BE3B555EBC5982B

Datei anzeigen

@ -18,17 +18,17 @@
package com.viaversion.viaversion.protocols.protocol1_17to1_16_4.storage; package com.viaversion.viaversion.protocols.protocol1_17to1_16_4.storage;
import com.viaversion.viaversion.api.connection.StorableObject; import com.viaversion.viaversion.api.connection.StorableObject;
import it.unimi.dsi.fastutil.ints.IntOpenHashSet; import it.unimi.dsi.fastutil.ints.IntArrayList;
import it.unimi.dsi.fastutil.ints.IntSet; import it.unimi.dsi.fastutil.ints.IntList;
public final class InventoryAcknowledgements implements StorableObject { public final class InventoryAcknowledgements implements StorableObject {
private final IntSet ids = new IntOpenHashSet(); private final IntList ids = new IntArrayList();
public void addId(int id) { public void addId(int id) {
ids.add(id); ids.add(id);
} }
public boolean removeId(int id) { public boolean removeId(int id) {
return ids.remove(id); return ids.rem(id);
} }
} }