summaryrefslogtreecommitdiffstats
path: root/source/blocks/Block.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-11 14:01:34 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-11 14:01:34 +0200
commit9eed83c33ae8c2bbb1781a01f05326dba667f4e3 (patch)
tree339ae563c07ba06b55a7f127dbd8c52f83e4dd66 /source/blocks/Block.cpp
parentCore's Web Chat should work on FireFox again. Apparently it appends "charset=utf-8" to the content type which was not properly handled. (diff)
downloadcuberite-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/Block.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/blocks/Block.cpp b/source/blocks/Block.cpp
index 7764e2881..98868de7d 100644
--- a/source/blocks/Block.cpp
+++ b/source/blocks/Block.cpp
@@ -2,6 +2,8 @@
#include "Block.h"
#include "../cItem.h"
#include "../cWorld.h"
+#include "BlockSand.h"
+#include "BlockGravel.h"
#include "BlockDoor.h"
#include "BlockFire.h"
#include "BlockRedstone.h"
@@ -75,6 +77,10 @@ cBlockHandler *cBlockHandler::CreateBlockHandler(BLOCKTYPE a_BlockID)
{
switch(a_BlockID)
{
+ case E_BLOCK_SAND:
+ return new cBlockSandHandler(a_BlockID);
+ case E_BLOCK_GRAVEL:
+ return new cBlockGravelHandler(a_BlockID);
case E_BLOCK_WOODEN_DOOR:
case E_BLOCK_IRON_DOOR:
return new cBlockDoorHandler(a_BlockID);
@@ -349,6 +355,14 @@ void cBlockHandler::DropBlock(cWorld *a_World, int a_X, int a_Y, int a_Z)
+AString cBlockHandler::GetStepSound() {
+ return "step.stone";
+}
+
+
+
+
+
bool cBlockHandler::CanBePlacedAt(cWorld *a_World, int a_X, int a_Y, int a_Z, char a_Dir)
{
return CanBeAt(a_World, a_X, a_Y, a_Z);