攻擊時不需指定主手或副手
參照https://wiki.vg/Protocol#Interact_Entity裡的 Hand為Only if Type is interact or interact at;
This commit is contained in:
@ -56,7 +56,6 @@ func (c *Client) AttackEntity(entityID int32, hand int) error {
|
||||
data.UseEntity,
|
||||
pk.VarInt(entityID),
|
||||
pk.VarInt(1),
|
||||
pk.VarInt(hand),
|
||||
))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user