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 780efef commit 76317d5
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,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 76317d5

Please sign in to comment.