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
|
|
@ -2195,16 +2195,26 @@ namespace MinecraftClient
|
|||
|
||||
if (entities.ContainsKey(entityID))
|
||||
{
|
||||
if (type == InteractType.Interact)
|
||||
switch (type)
|
||||
{
|
||||
return handler.SendInteractEntity(entityID, (int)type, (int)hand);
|
||||
}
|
||||
else
|
||||
{
|
||||
return handler.SendInteractEntity(entityID, (int)type);
|
||||
case InteractType.Interact:
|
||||
return handler.SendInteractEntity(entityID, (int)type, (int)hand);
|
||||
|
||||
case InteractType.InteractAt:
|
||||
return handler.SendInteractEntity(
|
||||
EntityID: entityID,
|
||||
type: (int)type,
|
||||
X: (float)entities[entityID].Location.X,
|
||||
Y: (float)entities[entityID].Location.Y,
|
||||
Z: (float)entities[entityID].Location.Z,
|
||||
hand: (int)hand);
|
||||
|
||||
default:
|
||||
return handler.SendInteractEntity(entityID, (int)type);
|
||||
}
|
||||
}
|
||||
else return false;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue