summaryrefslogtreecommitdiffstats
path: root/source/blocks/BlockRedstoneTorch.h
diff options
context:
space:
mode:
authorlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-01 23:21:17 +0200
committerlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-01 23:21:17 +0200
commit476748ac8bf26ddd2b1eb39baa281dc7125a52cb (patch)
tree3bbae162946d3f10c6d5c353f66a46bf342d2a40 /source/blocks/BlockRedstoneTorch.h
parentProgress on the 1.3.2 protocol. (diff)
downloadcuberite-476748ac8bf26ddd2b1eb39baa281dc7125a52cb.tar
cuberite-476748ac8bf26ddd2b1eb39baa281dc7125a52cb.tar.gz
cuberite-476748ac8bf26ddd2b1eb39baa281dc7125a52cb.tar.bz2
cuberite-476748ac8bf26ddd2b1eb39baa281dc7125a52cb.tar.lz
cuberite-476748ac8bf26ddd2b1eb39baa281dc7125a52cb.tar.xz
cuberite-476748ac8bf26ddd2b1eb39baa281dc7125a52cb.tar.zst
cuberite-476748ac8bf26ddd2b1eb39baa281dc7125a52cb.zip
Diffstat (limited to '')
-rw-r--r--source/blocks/BlockRedstoneTorch.h24
1 files changed, 2 insertions, 22 deletions
diff --git a/source/blocks/BlockRedstoneTorch.h b/source/blocks/BlockRedstoneTorch.h
index c90e1362d..88e884861 100644
--- a/source/blocks/BlockRedstoneTorch.h
+++ b/source/blocks/BlockRedstoneTorch.h
@@ -8,36 +8,16 @@
-class cBlockRedstoneTorchHandler : public cBlockRedstoneHandler
+class cBlockRedstoneTorchHandler : public cBlockTorchHandler
{
public:
cBlockRedstoneTorchHandler(BLOCKTYPE a_BlockID)
- : cBlockRedstoneHandler(a_BlockID)
+ : cBlockTorchHandler(a_BlockID)
{
}
-
- virtual bool CanBePlacedAt(cWorld *a_World, int a_X, int a_Y, int a_Z, char a_Dir) override
- {
- return cBlockTorchHandler::TorchCanBePlacedAt(a_World, a_X, a_Y, a_Z, a_Dir);
- }
-
-
- virtual bool CanBeAt(cWorld *a_World, int a_X, int a_Y, int a_Z) override
- {
- char Dir = cTorch::MetaDataToDirection(a_World->GetBlockMeta( a_X, a_Y, a_Z));
- return CanBePlacedAt(a_World, a_X, a_Y, a_Z, Dir);
- }
-
-
virtual int GetDropID(void) override
{
return E_ITEM_REDSTONE_TORCH_ON;
}
-
-
- virtual bool CanBePlacedOnSide() override
- {
- return true;
- }
}; \ No newline at end of file