Make it clear that ArgumentEntity uses a bitmask

This commit is contained in:
TheMode 2021-04-10 23:18:07 +02:00
parent d219570fe6
commit c347f55c1f

View File

@ -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);
});