From 6258ede75614e9f70cc7fad38e31e40a5373c8c3 Mon Sep 17 00:00:00 2001 From: GirafiStudios Date: Sun, 4 Dec 2016 09:51:21 +0100 Subject: [PATCH] Fixed picking up certain blocks, closes #921 --- .../biomesoplenty/common/handler/AchievementEventHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/biomesoplenty/common/handler/AchievementEventHandler.java b/src/main/java/biomesoplenty/common/handler/AchievementEventHandler.java index b3dcdbb21..3f6ed8a41 100644 --- a/src/main/java/biomesoplenty/common/handler/AchievementEventHandler.java +++ b/src/main/java/biomesoplenty/common/handler/AchievementEventHandler.java @@ -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 {