Fix issues with metadata from mined wood and wool

This commit is contained in:
Drew DeVault 2015-10-03 09:51:52 -04:00
parent eda920cb75
commit cc1eccae02
2 changed files with 4 additions and 2 deletions

View File

@ -97,9 +97,11 @@ namespace TrueCraft.Core.Logic
protected virtual ItemStack[] GetDrop(BlockDescriptor descriptor, ItemStack item)
{
short meta = 0;
short meta;
if (this is ICraftingRecipe)
meta = (short)((this as ICraftingRecipe).SignificantMetadata ? descriptor.Metadata : 0);
else
meta = descriptor.Metadata;
return new[] { new ItemStack(descriptor.ID, 1, meta) };
}

View File

@ -50,7 +50,7 @@ namespace TrueCraft.Core.Logic.Blocks
{
get
{
return false;
return true;
}
}
}