Switched to using getMetadata() rather than getItemDamage(). Closes #897 (If it doesn't, I blame Gregtech)
This commit is contained in:
parent
711c696b87
commit
fcc7c37195
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ public class AchievementEventHandler
|
||||||
Item item = stack.getItem();
|
Item item = stack.getItem();
|
||||||
|
|
||||||
Block block = Block.getBlockFromItem(item);
|
Block block = Block.getBlockFromItem(item);
|
||||||
IBlockState state = block != null ? block.getStateFromMeta(stack.getItemDamage()) : null;
|
IBlockState state = block != null ? block.getStateFromMeta(stack.getMetadata()) : null;
|
||||||
EntityPlayer player = event.player;
|
EntityPlayer player = event.player;
|
||||||
|
|
||||||
if (block != null && block instanceof BlockBOPLog)
|
if (block != null && block instanceof BlockBOPLog)
|
||||||
|
|
Loading…
Reference in a new issue