summaryrefslogtreecommitdiffstats
path: root/source/items/ItemLeaves.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/items/ItemLeaves.h')
-rw-r--r--source/items/ItemLeaves.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/source/items/ItemLeaves.h b/source/items/ItemLeaves.h
new file mode 100644
index 000000000..d328858fd
--- /dev/null
+++ b/source/items/ItemLeaves.h
@@ -0,0 +1,17 @@
+#pragma once
+
+#include "Item.h"
+
+
+class cItemLeavesHandler : public cItemHandler
+{
+public:
+ cItemLeavesHandler(int a_ItemID)
+ : cItemHandler(a_ItemID)
+ {
+ }
+ virtual char GetBlockMeta(char a_ItemMeta)
+ {
+ return a_ItemMeta | 0x4; //0x4 bit set means this is a player places leave
+ }
+}; \ No newline at end of file