mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-06 00:17:58 +01:00
Make it clear that ArgumentEntity uses a bitmask
This commit is contained in:
parent
d219570fe6
commit
c347f55c1f
@ -79,10 +79,10 @@ public class ArgumentEntity extends Argument<EntityFinder> {
|
||||
argumentNode.properties = BinaryWriter.makeArray(packetWriter -> {
|
||||
byte mask = 0;
|
||||
if (this.isOnlySingleEntity()) {
|
||||
mask += 1;
|
||||
mask |= 0x01;
|
||||
}
|
||||
if (this.isOnlyPlayers()) {
|
||||
mask += 2;
|
||||
mask |= 0x02;
|
||||
}
|
||||
packetWriter.writeByte(mask);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user