mirror of
https://github.com/trafficlunar/blockmatic.git
synced 2026-06-28 06:34:13 +00:00
fix: re-add switching to eraser when using pencil tool with air block
This commit is contained in:
parent
58c30b22bf
commit
e5aaf1486c
2 changed files with 9 additions and 6 deletions
|
|
@ -14,10 +14,7 @@ export function usePencilTool(mouseCoords: Position) {
|
|||
const radiusPosition = useRadiusPosition(mouseCoords);
|
||||
|
||||
const use = () => {
|
||||
// if (selectedBlock == "air") {
|
||||
// eraseTool();
|
||||
// break;
|
||||
// }
|
||||
if (selectedBlock == "air") return;
|
||||
const radiusBlocks: Block[] = [];
|
||||
|
||||
for (let x = 0; x < radius; x++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue