mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Partialy fixed interaction with Armor Stand
This commit is contained in:
parent
bbb3b1e38a
commit
db6422d154
2 changed files with 22 additions and 8 deletions
|
|
@ -314,7 +314,11 @@ namespace MinecraftClient.Commands
|
|||
handler.InteractEntity(entity.ID, InteractType.Attack);
|
||||
return Translations.cmd_entityCmd_attacked;
|
||||
case ActionType.Use:
|
||||
handler.InteractEntity(entity.ID, InteractType.Interact);
|
||||
bool shouldInteractAt = entity.Type == EntityType.ArmorStand ||
|
||||
entity.Type == EntityType.ChestMinecart ||
|
||||
entity.Type == EntityType.ChestBoat;
|
||||
|
||||
handler.InteractEntity(entity.ID, shouldInteractAt ? InteractType.InteractAt : InteractType.Interact);
|
||||
return Translations.cmd_entityCmd_used;
|
||||
case ActionType.List:
|
||||
return GetEntityInfoDetailed(handler, entity);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue