Skip to content

Commit

Permalink
feat: add default params
Browse files Browse the repository at this point in the history
  • Loading branch information
OEOTYAN committed Mar 31, 2024
1 parent 2a2dab0 commit 478b924
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mc/network/packet/Packet.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ class Packet {
* @param dimId The type of dimension to send the packet in.
* @param except exclude this player.
*/
LLAPI void sendTo(BlockPos const& pos, DimensionType dimId, optional_ref<Player const> except) const;
LLAPI void sendTo(BlockPos const& pos, DimensionType dimId, optional_ref<Player const> except = std::nullopt) const;

/**
* Send the packet to all relevant players within a specific actor.
*
* @param actor The actor to send the packet to.
* @param except exclude this player.
*/
LLAPI void sendTo(Actor const& actor, optional_ref<Player const> except) const;
LLAPI void sendTo(Actor const& actor, optional_ref<Player const> except = std::nullopt) const;

/**
* Send the packet to a specific client identified by network identifier and sub-client ID.
Expand Down

0 comments on commit 478b924

Please sign in to comment.