diff --git a/frontend/src/App.js b/frontend/src/App.js index 7d4f374d..489bb8ea 100644 --- a/frontend/src/App.js +++ b/frontend/src/App.js @@ -1369,6 +1369,7 @@ function App() { colorPixel={colorPixel} worldsMode={worldsMode} openedWorldId={openedWorldId} + placeWorldPixelCall={placeWorldPixelCall} activeWorld={activeWorld} width={width} height={height} diff --git a/frontend/src/canvas/CanvasContainer.js b/frontend/src/canvas/CanvasContainer.js index 2157bc63..7c4daf99 100644 --- a/frontend/src/canvas/CanvasContainer.js +++ b/frontend/src/canvas/CanvasContainer.js @@ -353,7 +353,16 @@ const CanvasContainer = (props) => { if (!devnetMode) { props.setSelectedColorId(-1); props.colorPixel(position, colorId); - await placePixelCall(position, colorId, timestamp); + if (props.worldsMode) { + await props.placeWorldPixelCall( + props.openedWorldId, + [position], + [colorId], + timestamp + ); + } else { + await placePixelCall(position, colorId, timestamp); + } props.clearPixelSelection(); props.setLastPlacedTime(timestamp * 1000); return;