Fixed picking up certain blocks, closes #921
This commit is contained in:
parent
1f0140167f
commit
6258ede756
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue