Skip to content

Commit

Permalink
WrappedPacketOutMapChunk#getPrimaryBitMap deprecated, it was a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
retrooper committed Jul 8, 2021
1 parent 2d8cf55 commit 0c7f185
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,16 @@ public void setPrimaryBitMaskBitSet(BitSet bitMaskBitSet) {
}
}

@Deprecated
public Optional<Integer> getPrimaryBitMap() {
return getPrimaryBitMask();
}

@Deprecated
public void setPrimaryBitMap(int primaryBitMask) {
setPrimaryBitMask(primaryBitMask);
}

public Optional<Integer> getPrimaryBitMask() {
if (v_1_17) {
return Optional.of((int) readObject(0, BitSet.class).toLongArray()[0]);
Expand Down

0 comments on commit 0c7f185

Please sign in to comment.