diff options
Diffstat (limited to '')
-rw-r--r-- | source/items/ItemSapling.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/source/items/ItemSapling.h b/source/items/ItemSapling.h index 23894b812..7edbc76c9 100644 --- a/source/items/ItemSapling.h +++ b/source/items/ItemSapling.h @@ -1,8 +1,12 @@ +
#pragma once
#include "Item.h"
+
+
+
class cItemSaplingHandler : public cItemHandler
{
public:
@@ -12,9 +16,13 @@ public: }
- virtual NIBBLETYPE GetBlockMeta(NIBBLETYPE a_ItemMeta) override
+ virtual NIBBLETYPE GetBlockMeta(short a_ItemDamage) override
{
- //Only the first 2 bits are important
- return a_ItemMeta & 3;
+ // Only the lowest 3 bits are important
+ return (NIBBLETYPE)(a_ItemDamage & 0x07);
}
-};
\ No newline at end of file +} ;
+
+
+
+
|