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:
copilot-swe-agent[bot] 2026-03-26 19:19:43 +00:00
parent f158d78726
commit 0d38884df8

View file

@ -48,7 +48,7 @@ namespace MinecraftClient.Commands
Location current = handler.GetCurrentLocation(); Location current = handler.GetCurrentLocation();
block = block.ToAbsolute(current).ToFloor(); block = block.ToAbsolute(current).ToFloor();
Location blockCenter = block.ToCenter(); 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); return r.SetAndReturn(string.Format(Translations.cmd_useblock_use, blockCenter.X, blockCenter.Y, blockCenter.Z, res ? "succeeded" : "failed"), res);
} }
} }