攻擊時不需指定主手或副手

參照https://wiki.vg/Protocol#Interact_Entity裡的
Hand為Only if Type is interact or interact at;
This commit is contained in:
rain931215
2020-05-02 17:03:07 +08:00
parent e3052668a3
commit 1d58589601

View File

@ -56,7 +56,6 @@ func (c *Client) AttackEntity(entityID int32, hand int) error {
data.UseEntity,
pk.VarInt(entityID),
pk.VarInt(1),
pk.VarInt(hand),
))
}