summaryrefslogtreecommitdiffstats
path: root/source/Blocks/BlockRedstoneTorch.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/Blocks/BlockRedstoneTorch.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/source/Blocks/BlockRedstoneTorch.h b/source/Blocks/BlockRedstoneTorch.h
index eeb2afc5c..857c61761 100644
--- a/source/Blocks/BlockRedstoneTorch.h
+++ b/source/Blocks/BlockRedstoneTorch.h
@@ -1,5 +1,6 @@
#pragma once
+
#include "BlockRedstone.h"
#include "BlockTorch.h"
#include "../Torch.h"
@@ -8,7 +9,8 @@
-class cBlockRedstoneTorchHandler : public cBlockTorchHandler
+class cBlockRedstoneTorchHandler :
+ public cBlockTorchHandler
{
public:
cBlockRedstoneTorchHandler(BLOCKTYPE a_BlockID)
@@ -16,13 +18,20 @@ public:
{
}
- virtual int GetDropID(void) override
+
+ virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override
{
- return E_ITEM_REDSTONE_TORCH_ON;
+ // Always drop the ON torch, meta 0
+ a_Pickups.push_back(cItem(E_ITEM_REDSTONE_TORCH_ON, 1, 0));
}
- virtual AString GetStepSound(void) override
+
+ virtual const char * GetStepSound(void) override
{
return "step.wood";
}
-};
+} ;
+
+
+
+