From 9a21d41a11f9556f043c2b09cdecb3134ee89c2f Mon Sep 17 00:00:00 2001 From: MJRLegends Date: Tue, 28 Mar 2023 13:34:29 +0100 Subject: [PATCH] Fixed issue #752 - Kepler22b Green & Brown Leaves drops Blue & Red Saplings instead --- .../Kepler22b/BlockKepler22bMapleTreeLeaves2.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/mjr/extraplanets/blocks/planetAndMoonBlocks/Kepler22b/BlockKepler22bMapleTreeLeaves2.java b/src/main/java/com/mjr/extraplanets/blocks/planetAndMoonBlocks/Kepler22b/BlockKepler22bMapleTreeLeaves2.java index 0ab1817f89..f65a6652de 100644 --- a/src/main/java/com/mjr/extraplanets/blocks/planetAndMoonBlocks/Kepler22b/BlockKepler22bMapleTreeLeaves2.java +++ b/src/main/java/com/mjr/extraplanets/blocks/planetAndMoonBlocks/Kepler22b/BlockKepler22bMapleTreeLeaves2.java @@ -146,7 +146,14 @@ protected BlockStateContainer createBlockState() { */ @Override public int damageDropped(IBlockState state) { - return state.getValue(VARIANT).getMetadata(); + int incomingMeta = state.getValue(VARIANT).getMetadata(); + switch(incomingMeta) { + case 0: + default: + return BlockKepler22bMapleTreeSapling.EnumType.MAPLE_GREEN.getMetadata(); + case 1: + return BlockKepler22bMapleTreeSapling.EnumType.MAPLE_BROWN.getMetadata(); + } } @Override