Fixed the slab vertical mirroring.
This commit is contained in:
parent
d61ff4da3b
commit
dd6a9f6559
|
@ -124,6 +124,12 @@ public:
|
||||||
return E_BLOCK_AIR;
|
return E_BLOCK_AIR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
virtual NIBBLETYPE MetaMirrorXZ(NIBBLETYPE a_Meta) override
|
||||||
|
{
|
||||||
|
// Toggle the 4th bit - up / down:
|
||||||
|
return (a_Meta ^ 0x08);
|
||||||
|
}
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
|
||||||
|
@ -167,15 +173,6 @@ public:
|
||||||
ASSERT(!"Unhandled double slab type!");
|
ASSERT(!"Unhandled double slab type!");
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
virtual NIBBLETYPE MetaMirrorXZ(NIBBLETYPE a_Meta) override
|
|
||||||
{
|
|
||||||
NIBBLETYPE OtherMeta = a_Meta & 0x07; // Contains unrelated meta data.
|
|
||||||
|
|
||||||
// 8th bit is up/down. 1 right-side-up, 0 is up-side-down.
|
|
||||||
return (a_Meta & 0x08) ? 0x00 + OtherMeta : 0x01 + OtherMeta;
|
|
||||||
}
|
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user