Merge pull request #922 from GirafiStudios/pickup_fix
Fixed picking up certain blocks, closes #921
This commit is contained in:
commit
18c3c5c125
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