mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Fix interact and attack in interact translator
This commit is contained in:
parent
4f461bf374
commit
bf90b803ca
1 changed files with 2 additions and 2 deletions
|
@ -44,12 +44,12 @@ public class BedrockInteractTranslator extends PacketTranslator<InteractPacket>
|
|||
return;
|
||||
|
||||
switch (packet.getAction()) {
|
||||
case NONE:
|
||||
case UNKNOWN_1: // interact
|
||||
ClientPlayerInteractEntityPacket interactPacket = new ClientPlayerInteractEntityPacket((int) entity.getEntityId(),
|
||||
InteractAction.INTERACT, Hand.MAIN_HAND);
|
||||
session.getDownstream().getSession().send(interactPacket);
|
||||
break;
|
||||
case UNKNOWN_1:
|
||||
case DAMAGE:
|
||||
ClientPlayerInteractEntityPacket attackPacket = new ClientPlayerInteractEntityPacket((int) entity.getEntityId(),
|
||||
InteractAction.ATTACK, Hand.MAIN_HAND);
|
||||
session.getDownstream().getSession().send(attackPacket);
|
||||
|
|
Loading…
Reference in a new issue