From d3b7a39f928473366132b37f76fc1bb13b08de43 Mon Sep 17 00:00:00 2001 From: "lapayo94@gmail.com" Date: Mon, 16 Jul 2012 18:19:25 +0000 Subject: fixed redstone repeater placement git-svn-id: http://mc-server.googlecode.com/svn/trunk@673 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/items/ItemRedstoneRepeater.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 source/items/ItemRedstoneRepeater.h (limited to 'source/items/ItemRedstoneRepeater.h') diff --git a/source/items/ItemRedstoneRepeater.h b/source/items/ItemRedstoneRepeater.h new file mode 100644 index 000000000..0250cdee0 --- /dev/null +++ b/source/items/ItemRedstoneRepeater.h @@ -0,0 +1,27 @@ +#pragma once +#include "Item.h" + + +class cItemRedstoneRepeaterHandler : public cItemHandler +{ +public: + cItemRedstoneRepeaterHandler(int a_ItemID) + : cItemHandler(a_ItemID) + { + } + + virtual bool IsPlaceable() + { + return true; + } + + virtual BLOCKTYPE GetBlockType() + { + return ::E_BLOCK_REDSTONE_REPEATER_OFF; + } + + virtual char GetBlockMeta(char a_ItemMeta) + { + return 0; + } +}; \ No newline at end of file -- cgit v1.2.3