diff --git a/src/main/java/openblocks/common/block/BlockGrave.java b/src/main/java/openblocks/common/block/BlockGrave.java index b0ce23f5..74846ab2 100644 --- a/src/main/java/openblocks/common/block/BlockGrave.java +++ b/src/main/java/openblocks/common/block/BlockGrave.java @@ -91,7 +91,7 @@ public float getPlayerRelativeBlockHardness(EntityPlayer player, World world, in if (tile instanceof TileEntityGrave) { TileEntityGrave graveStone = (TileEntityGrave) tile; - if (Objects.equals(graveStone.getUsername(), player.getDisplayName())) return 2.0F; + if (Objects.equals(graveStone.getUsername(), player.getGameProfile().getName())) return 2.0F; } return super.getPlayerRelativeBlockHardness(player, world, x, y, z);