diff --git a/client/src/components/Map3D.jsx b/client/src/components/Map3D.jsx
index 1c0c346..ea225b9 100644
--- a/client/src/components/Map3D.jsx
+++ b/client/src/components/Map3D.jsx
@@ -355,7 +355,7 @@ function TurtleModel({ turtle, isSelected, onClick }) {
{/* LED glow */}
@@ -397,7 +397,7 @@ function TurtleModel({ turtle, isSelected, onClick }) {
{/* Tool/Mining arm - only show when mining */}
- {mode === 'mining' && (
+ {activeMode === 'mining' && (
<>
@@ -536,7 +536,7 @@ function getBlockAppearance(blockName) {
// WorldBlocks component to render discovered blocks with Minecraft textures
function WorldBlocks({ blocks }) {
const [hoveredBlock, setHoveredBlock] = useState(null);
- const { textures, loading } = useMinecraftTextures(blocks);
+ const { textures, multiFaceTextures, loading } = useMinecraftTextures(blocks);
// Group blocks by block name for better performance
const blockGroups = useMemo(() => {
@@ -561,6 +561,7 @@ function WorldBlocks({ blocks }) {
{blockGroups.map(([blockName, blockList]) => {
const appearance = getBlockAppearance(blockName);
const texture = textures[blockName];
+ const multiFace = multiFaceTextures[blockName];
return (
@@ -579,16 +580,36 @@ function WorldBlocks({ blocks }) {
onPointerOut={() => setHoveredBlock(null)}
>
-
+ {multiFace ? (
+ // Multi-face block (different top/side/bottom)
+ // Box face order: +x, -x, +y, -y, +z, -z
+ multiFace.map((faceTexture, i) => (
+
+ ))
+ ) : (
+ // Single texture or color fallback
+
+ )}
{/* Block label on hover */}