Skip to content

Commit

Permalink
Fixed issue #752 - Kepler22b Green & Brown Leaves drops Blue & Red Sa…
Browse files Browse the repository at this point in the history
…plings instead
  • Loading branch information
MJRLegends committed Mar 28, 2023
1 parent 8207caa commit 9a21d41
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9a21d41

Please sign in to comment.