Skip to content

Commit

Permalink
use a set for pet IDs instead of an arraylist
Browse files Browse the repository at this point in the history
  • Loading branch information
demonlexe committed Aug 21, 2024
1 parent da1f000 commit 89b5e44
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,14 @@
import net.minecraft.nbt.NBTTagList;
import net.minecraft.util.math.BlockPos;

import java.util.ArrayList;
import java.util.BitSet;
import java.util.UUID;
import java.util.*;

public class MoCPetData {

@SuppressWarnings("unused")
private final UUID ownerUniqueId;
private final BitSet idMap = new BitSet(Long.SIZE << 4);
private final ArrayList<Integer> usedPetIds = new ArrayList<>();
private final Set<Integer> usedPetIds = new HashSet<>();
private NBTTagCompound ownerData = new NBTTagCompound();
private NBTTagList tamedList = new NBTTagList();

Expand Down

0 comments on commit 89b5e44

Please sign in to comment.