Merge pull request #922 from GirafiStudios/pickup_fix

Fixed picking up certain blocks, closes #921
This commit is contained in:
Adubbz 2016-12-04 20:12:21 +11:00 committed by GitHub
commit 18c3c5c125

View file

@ -53,7 +53,7 @@ public class AchievementEventHandler
ItemStack stack = event.getItem().getEntityItem();
Item item = stack.getItem();
IBlockState state = Block.getBlockFromItem(item).getStateFromMeta(item.getMetadata(stack.getMetadata()));
IBlockState state = Block.getBlockFromItem(item).getStateFromMeta(item.getMetadata(stack));
Block block = state.getBlock();
EntityPlayer player = event.getEntityPlayer();
@ -174,7 +174,7 @@ public class AchievementEventHandler
if (stack != null)
{
Item item = stack.getItem();
IBlockState state = Block.getBlockFromItem(item).getStateFromMeta(item.getMetadata(stack.getMetadata()));
IBlockState state = Block.getBlockFromItem(item).getStateFromMeta(item.getMetadata(stack));
try
{