summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockDoor.cpp
diff options
context:
space:
mode:
authornarroo <narroo@vt.edu>2014-03-25 22:35:48 +0100
committernarroo <narroo@vt.edu>2014-03-25 22:35:48 +0100
commitd5c7fc6bd65bfabf8d95b6f2c4cbdf5dd2b447b7 (patch)
tree82cb36fd93b60f3a3cefd2fcf1fb69b469a5c26d /src/Blocks/BlockDoor.cpp
parentFixed spelling; Rotater to Rotator. (diff)
downloadcuberite-d5c7fc6bd65bfabf8d95b6f2c4cbdf5dd2b447b7.tar
cuberite-d5c7fc6bd65bfabf8d95b6f2c4cbdf5dd2b447b7.tar.gz
cuberite-d5c7fc6bd65bfabf8d95b6f2c4cbdf5dd2b447b7.tar.bz2
cuberite-d5c7fc6bd65bfabf8d95b6f2c4cbdf5dd2b447b7.tar.lz
cuberite-d5c7fc6bd65bfabf8d95b6f2c4cbdf5dd2b447b7.tar.xz
cuberite-d5c7fc6bd65bfabf8d95b6f2c4cbdf5dd2b447b7.tar.zst
cuberite-d5c7fc6bd65bfabf8d95b6f2c4cbdf5dd2b447b7.zip
Diffstat (limited to 'src/Blocks/BlockDoor.cpp')
-rw-r--r--src/Blocks/BlockDoor.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/Blocks/BlockDoor.cpp b/src/Blocks/BlockDoor.cpp
index c027daed2..100f48e6c 100644
--- a/src/Blocks/BlockDoor.cpp
+++ b/src/Blocks/BlockDoor.cpp
@@ -143,7 +143,10 @@ NIBBLETYPE cBlockDoorHandler::MetaMirrorXY(NIBBLETYPE a_Meta)
{
// Top bit (0x08) contains door panel type (Top/Bottom panel) Only Bottom panels contain position data
// Return a_Meta if panel is a top panel (0x08 bit is set to 1)
- LOG("Test MirrorXY");
+
+ // Note: Currently, you can not properly mirror the hinges on a double door. The orientation of the door is stored
+ // in only the bottom tile while the hinge position is in the top tile. This function only operates on one tile at a time,
+ // so the function can only see either the hinge position or orientation, but not both, at any given time.
if (a_Meta & 0x08) return a_Meta;
// Holds open/closed meta data. 0x0C == 1100.
@@ -166,7 +169,10 @@ NIBBLETYPE cBlockDoorHandler::MetaMirrorYZ(NIBBLETYPE a_Meta)
{
// Top bit (0x08) contains door panel type (Top/Bottom panel) Only Bottom panels contain position data
// Return a_Meta if panel is a top panel (0x08 bit is set to 1)
- LOG("Test MirrorYZ");
+
+ // Note: Currently, you can not properly mirror the hinges on a double door. The orientation of the door is stored
+ // in only the bottom tile while the hinge position is in the top tile. This function only operates on one tile at a time,
+ // so the function can only see either the hinge position or orientation, but not both, at any given time.
if (a_Meta & 0x08) return a_Meta;
// Holds open/closed meta data. 0x0C == 1100.