mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
Fix useblock to click top face
Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/f2e69171-f95d-4a58-aac1-d2b6f252a3ec Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
This commit is contained in:
parent
f158d78726
commit
0d38884df8
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ namespace MinecraftClient.Commands
|
|||
Location current = handler.GetCurrentLocation();
|
||||
block = block.ToAbsolute(current).ToFloor();
|
||||
Location blockCenter = block.ToCenter();
|
||||
bool res = handler.PlaceBlock(block, Direction.Down, lookAtBlock: true);
|
||||
bool res = handler.PlaceBlock(block, Direction.Up, lookAtBlock: true);
|
||||
return r.SetAndReturn(string.Format(Translations.cmd_useblock_use, blockCenter.X, blockCenter.Y, blockCenter.Z, res ? "succeeded" : "failed"), res);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue