Skip to content

Commit

Permalink
Use AttributeKey#valueOf (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
onebeastchris authored Aug 28, 2024
1 parent b00c443 commit 0fc353e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public enum PacketDirection {
*/
SERVER_BOUND(PacketRecipient.CLIENT, PacketRecipient.SERVER);

public static final AttributeKey<PacketDirection> ATTRIBUTE = AttributeKey.newInstance("packet_direction");
public static final AttributeKey<PacketDirection> ATTRIBUTE = AttributeKey.valueOf("packet_direction");

private final PacketRecipient inbound;
private final PacketRecipient outbound;
Expand Down

0 comments on commit 0fc353e

Please sign in to comment.