diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-09-11 14:01:34 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-09-11 14:01:34 +0200 |
commit | 9eed83c33ae8c2bbb1781a01f05326dba667f4e3 (patch) | |
tree | 339ae563c07ba06b55a7f127dbd8c52f83e4dd66 /source/blocks/BlockDoor.cpp | |
parent | Core's Web Chat should work on FireFox again. Apparently it appends "charset=utf-8" to the content type which was not properly handled. (diff) | |
download | cuberite-9eed83c33ae8c2bbb1781a01f05326dba667f4e3.tar cuberite-9eed83c33ae8c2bbb1781a01f05326dba667f4e3.tar.gz cuberite-9eed83c33ae8c2bbb1781a01f05326dba667f4e3.tar.bz2 cuberite-9eed83c33ae8c2bbb1781a01f05326dba667f4e3.tar.lz cuberite-9eed83c33ae8c2bbb1781a01f05326dba667f4e3.tar.xz cuberite-9eed83c33ae8c2bbb1781a01f05326dba667f4e3.tar.zst cuberite-9eed83c33ae8c2bbb1781a01f05326dba667f4e3.zip |
Diffstat (limited to '')
-rw-r--r-- | source/blocks/BlockDoor.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/source/blocks/BlockDoor.cpp b/source/blocks/BlockDoor.cpp index ecee2c12d..283f546b6 100644 --- a/source/blocks/BlockDoor.cpp +++ b/source/blocks/BlockDoor.cpp @@ -62,4 +62,13 @@ void cBlockDoorHandler::PlaceBlock(cWorld *a_World, cPlayer *a_Player, NIBBLETYP a_World->SetBlock(a_X, a_Y, a_Z, m_BlockID, a_BlockMeta);
OnPlacedByPlayer(a_World, a_Player, a_X, a_Y, a_Z, a_Dir);
}
-}
\ No newline at end of file +}
+
+AString cBlockDoorHandler::GetStepSound(void)
+{
+ if (m_BlockID == E_BLOCK_WOODEN_DOOR)
+ return "step.wood";
+
+ else
+ return "step.stone";
+}
|